notifications: fix tests

This commit is contained in:
Matteo Pagliazzi
2018-02-04 14:20:12 +01:00
parent ab89941ed5
commit 2029cd884c

View File

@@ -18,7 +18,9 @@ schema.plugin(baseModel, {
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
delete plainObj.filters;
if (originalDoc.notifications) {
plainObj.notifications = UserNotification.convertNotificationsToSafeJson(originalDoc.notifications);
}
return plainObj;
},