mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
simpler empty parties preen
This commit is contained in:
parent
b7d5c0808b
commit
d4d7c32fa8
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ db.users.find({
|
|||
* Remove empty parties
|
||||
*/
|
||||
db.groups.remove({
|
||||
$where: function(){ return this.type === 'party' && this.members.length === 0; }
|
||||
'type': 'party',
|
||||
$where: "return this.members.length === 0"
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue