chore: update sub-deps and fix lint

This commit is contained in:
Matteo Pagliazzi
2020-07-01 18:20:18 +02:00
parent b9d42bf0bc
commit 3d5630d5a2
72 changed files with 2519 additions and 3931 deletions
-1
View File
@@ -74,7 +74,6 @@ export function setUserStyles (newMessage, user) {
userStyles.items.currentPet = userCopy.items.currentPet;
}
if (userCopy.preferences) {
userStyles.preferences = {};
if (userCopy.preferences.style) userStyles.preferences.style = userCopy.preferences.style;
-1
View File
@@ -45,5 +45,4 @@ schema.statics.cleanupCorruptData = function cleanupCorruptPushDevicesData (push
return filteredPushDevices;
};
export const model = mongoose.model('PushDevice', schema);
-2
View File
@@ -108,7 +108,6 @@ schema.methods.getObjectionsToInteraction = function getObjectionsToInteraction
)(checks);
};
/**
* Sends a message to a user. Archives a copy in sender's inbox.
*
@@ -251,7 +250,6 @@ schema.methods.addAchievement = function addAchievement (achievement) {
});
};
/**
* Adds an achievement and a related notification to the user, saving it directly to the database
* To be used when the user object is not loaded or we don't want to use `user.save`