Fix kill dead clients tx wantclue

This commit is contained in:
Benjamin Wilson
2025-02-22 17:47:46 -05:00
parent 78ef48b805
commit 66ce822faa
+1 -1
View File
@@ -24,7 +24,7 @@ export class ClientService {
.createQueryBuilder() .createQueryBuilder()
.update(ClientEntity) .update(ClientEntity)
.set({ deletedAt: () => "NOW()" }) .set({ deletedAt: () => "NOW()" })
.where("deletedAt IS NULL AND updatedAt < NOW() + interval '5 minutes' ") .where("deletedAt IS NULL AND updatedAt < NOW() - interval '5 minutes' ")
.execute(); .execute();
} }