- fix quantità corretta sulla email e dimensione dell'immagine

This commit is contained in:
Surya Paolo
2024-04-11 17:12:21 +02:00
parent c2d76ff10a
commit 3e8be18473
8 changed files with 43 additions and 178 deletions

View File

@@ -1661,6 +1661,15 @@ UserSchema.methods.removeToken = function (token) {
});
};
// # Rimuove tutti i tokens di tutti gli utenti con idapp
UserSchema.statics.SvuotaTuttiGliAccessiOnlineConToken = async function (idapp) {
const User = this;
return await User.updateMany({ idapp },
{ $set: { tokens: [] } });
};
UserSchema.statics.getEmailByUsername = async function (idapp, username) {
const User = this;