mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Formatting changes for readability
This commit is contained in:
parent
be3fe8f1f4
commit
77ded02fa0
1 changed files with 10 additions and 5 deletions
|
|
@ -27,9 +27,14 @@ if (_id) {
|
|||
db.users.update({_id:_id}, update);
|
||||
} else {
|
||||
// multiple (once @ start of event)
|
||||
db.users.update([{$and: [{'purchased.plan.customerId':{$ne:null}},
|
||||
{$or: [{'purchased.plan.dateTerminated':{$gte:new Date()}},
|
||||
{'purchased.plan.dateTerminated':{$exists:false}},
|
||||
{'purchased.plan.dateTerminated':{$eq:null}}]}]}], update, {multi:true});
|
||||
});
|
||||
db.users.update([
|
||||
{$and: [
|
||||
{ 'purchased.plan.customerId': { $ne:null } },
|
||||
{$or: [
|
||||
{ 'purchased.plan.dateTerminated': { $gte: new Date() } },
|
||||
{ 'purchased.plan.dateTerminated': { $exists:false } },
|
||||
{ 'purchased.plan.dateTerminated': { $eq:null } }
|
||||
]}
|
||||
]}
|
||||
], update, { multi:true });
|
||||
}
|
||||
Loading…
Reference in a new issue