- fix: La partecipazione agli eventi, non viene salvata correttamente e non visualizzava.

This commit is contained in:
Surya Paolo
2024-09-30 14:50:19 +02:00
parent 0973fc8757
commit 0a9e012de0
6 changed files with 58 additions and 14 deletions

View File

@@ -1300,14 +1300,22 @@ sendNotifSchema.statics.RemoveOldNotif = async function (idapp, numgg) {
{
idapp,
date_created: { $lt: limitDate },
typedir: { $ne: shared_consts.TypeNotifs.TYPEDIR_CIRCUITS },
// typedir: { $ne: shared_consts.TypeNotifs.TYPEDIR_CIRCUITS },
$or: [
{ typeid: { $ne: shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ } },
{ status: { $ne: 0 } }
]
}
);
};
sendNotifSchema.statics.RemoveOldNotif90 = async function (idapp) {
return this.RemoveOldNotif90(idapp, 90);
return this.RemoveOldNotif(idapp, 90);
}
sendNotifSchema.statics.RemoveOldNotif30 = async function (idapp) {
return this.RemoveOldNotif(idapp, 30);
}
sendNotifSchema.statics.updatePendingTransactions = async function (recnotif) {