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:
parent
acc478597a
commit
d9765269b2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user