mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Fix getting recently used devices
This commit is contained in:
@@ -59,7 +59,7 @@ export async function findOldFamilyIds (database: Database) {
|
||||
[Sequelize.Op.in]: familyIdsWithExpiredLicenses
|
||||
},
|
||||
lastConnectivity: {
|
||||
[Sequelize.Op.lt]: (Date.now() - 1000 * 60 * 60 * 24 * 90 /* 90 days */).toString(10)
|
||||
[Sequelize.Op.gt]: (Date.now() - 1000 * 60 * 60 * 24 * 90 /* 90 days */).toString(10)
|
||||
}
|
||||
},
|
||||
attributes: ['familyId']
|
||||
|
||||
Reference in New Issue
Block a user