mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Fix kill dead clients tx wantclue
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user