mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-15 12:07:43 +00:00
fix(find_uniq_user): fix
This commit is contained in:
parent
13131087ff
commit
ecbe780e70
1 changed files with 3 additions and 2 deletions
|
|
@ -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});
|
||||
})
|
||||
Loading…
Reference in a new issue