mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix mongoose issue
This commit is contained in:
@@ -91,7 +91,7 @@ api.removePushDevice = {
|
||||
}
|
||||
|
||||
// Concurrency safe update
|
||||
const pullQuery = { $pull: { pushDevices: { $elemMatch: { regId } } } };
|
||||
const pullQuery = { $pull: { pushDevices: { regId } } };
|
||||
await user.update(pullQuery).exec();
|
||||
|
||||
// Update the response
|
||||
|
||||
Reference in New Issue
Block a user