piccole modifiche...

This commit is contained in:
Surya Paolo
2025-01-12 21:29:16 +01:00
parent 2b1fc9b090
commit 37970c5c91
2 changed files with 14 additions and 3 deletions

View File

@@ -945,6 +945,13 @@ export default defineComponent({
filtercustom.push({
'profile.mycircuits': { $exists: true, $ne: [] }
});
} else if (item.value === shared_consts.FILTER_USER_ONLINE_6_MESI) {
const numgiorni_attivi = 30 * 6
let daytocheck = new Date();
daytocheck.setDate(daytocheck.getDate() - numgiorni_attivi);
daytocheck.setHours(0, 0, 0, 0)
filtercustom.push({ lasttimeonline: { $gt: daytocheck } })
} else if (item.value === shared_consts.FILTER_USER_SENZA_CIRCUITO) {
filtercustom.push({
$or: [