1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

feat: remove old instances based on last seen not created at (#9833)

This commit is contained in:
Mateusz Kwasniewski 2025-04-24 16:33:12 +02:00 committed by GitHub
parent acc478597a
commit d9765269b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ export default class ClientInstanceStore implements IClientInstanceStore {
async removeInstancesOlderThanTwoDays(): Promise<void> {
const rows = await this.db(TABLE)
.whereRaw("created_at < now() - interval '2 days'")
.whereRaw("last_seen < now() - interval '2 days'")
.del();
if (rows > 0) {