mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
notifications tests
This commit is contained in:
@@ -93,6 +93,7 @@ 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 => {
|
||||
|
||||
Reference in New Issue
Block a user