mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
notifications: fix tests
This commit is contained in:
@@ -18,7 +18,9 @@ schema.plugin(baseModel, {
|
|||||||
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
|
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
|
||||||
delete plainObj.filters;
|
delete plainObj.filters;
|
||||||
|
|
||||||
plainObj.notifications = UserNotification.convertNotificationsToSafeJson(originalDoc.notifications);
|
if (originalDoc.notifications) {
|
||||||
|
plainObj.notifications = UserNotification.convertNotificationsToSafeJson(originalDoc.notifications);
|
||||||
|
}
|
||||||
|
|
||||||
return plainObj;
|
return plainObj;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user