mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Ensured group tasks are removed from places that challegnes tasks are (#8359)
* Ensured group tasks are removed from places that challegnes tasks are * Added tests for user reset and class cast
This commit is contained in:
committed by
Matteo Pagliazzi
parent
28e8ec2d2c
commit
857aa5827b
@@ -917,6 +917,8 @@ api.clearCompletedTodos = {
|
||||
$or: [
|
||||
{'challenge.id': {$exists: false}},
|
||||
{'challenge.broken': {$exists: true}},
|
||||
{'group.id': {$exists: false}},
|
||||
{'group.broken': {$exists: true}},
|
||||
],
|
||||
}).exec();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user