Fix getting recently used devices

This commit is contained in:
Jonas Lochmann 2019-10-14 00:00:00 +00:00
parent e6bc3c9a75
commit 919b0e6984
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -59,7 +59,7 @@ export async function findOldFamilyIds (database: Database) {
[Sequelize.Op.in]: familyIdsWithExpiredLicenses [Sequelize.Op.in]: familyIdsWithExpiredLicenses
}, },
lastConnectivity: { 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'] attributes: ['familyId']