Skip to content

Commit d976526

Browse files
authored
feat: remove old instances based on last seen not created at (#9833)
1 parent acc4785 commit d976526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/db/client-instance-store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class ClientInstanceStore implements IClientInstanceStore {
6262

6363
async removeInstancesOlderThanTwoDays(): Promise<void> {
6464
const rows = await this.db(TABLE)
65-
.whereRaw("created_at < now() - interval '2 days'")
65+
.whereRaw("last_seen < now() - interval '2 days'")
6666
.del();
6767

6868
if (rows > 0) {

0 commit comments

Comments
 (0)