mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
v3: check that tasks are deleted when the user deletes the acocunt and misc fixes
This commit is contained in:
@@ -219,6 +219,10 @@ api.deleteUser = {
|
||||
|
||||
await Q.all(groupLeavePromises);
|
||||
|
||||
await Tasks.Task.remove({
|
||||
userId: user._id,
|
||||
}).exec();
|
||||
|
||||
await user.remove();
|
||||
|
||||
res.respond(200, {});
|
||||
|
||||
Reference in New Issue
Block a user