fix invalid push devices

This commit is contained in:
Matteo Pagliazzi
2020-03-01 21:49:52 +01:00
parent 6deee0ffc8
commit 3f5ee32684
5 changed files with 89 additions and 10 deletions

View File

@@ -93,7 +93,6 @@ export const schema = new Schema({
* Called by user's post init hook (models/user/hooks.js)
*/
schema.statics.cleanupCorruptData = function cleanupCorruptNotificationsData (notifications) {
console.log('fixing stuff', notifications);
if (!notifications) return notifications;
let filteredNotifications = notifications.filter(notification => {