mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
fix(find_uniq_user): fix
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
db.users.find().forEach(function(user){
|
||||
var found = _.any(user.tasks, {text: "Replace Me"})
|
||||
if (found) printjson({id:user._id, auth:user.auth});
|
||||
user.tasks = user.habits.concat(user.dailys).concat(user.todos).concat(user.rewards);
|
||||
var found = _.any(user.tasks, {text: ""})
|
||||
if (found) printjson({id:user._id, auth:user.auth});
|
||||
})
|
||||
Reference in New Issue
Block a user