favorite: send if alert active

This commit is contained in:
Surya Paolo
2023-04-12 16:29:22 +02:00
parent f13786fca1
commit cada7aa0b6
2 changed files with 41 additions and 26 deletions

View File

@@ -4809,7 +4809,7 @@ UserSchema.statics.addExtraInfo = async function (idapp, recUser, recUserSave, v
UserSchema.statics.updateVersion = async function (userversion, recUser) {
if (userversion < 063) {
if (userversion < 603) {
recUser.profile.notifs.push( { dir: 11, value: 1 })
await User.findOneAndUpdate({_id: recUser._id}, {$set: { 'profile.notifs': recUser.profile.notifs }});