v3: check that tasks are deleted when the user deletes the acocunt and misc fixes

This commit is contained in:
Matteo Pagliazzi
2016-04-04 17:16:36 +02:00
parent 1620614b3b
commit 68ff26e6d6
4 changed files with 30 additions and 5 deletions

View File

@@ -219,6 +219,10 @@ api.deleteUser = {
await Q.all(groupLeavePromises);
await Tasks.Task.remove({
userId: user._id,
}).exec();
await user.remove();
res.respond(200, {});