remove logging

This commit is contained in:
Ben Wilson
2023-08-06 17:45:30 -04:00
parent 32c1a34202
commit 24538d34ce
3 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -20,13 +20,13 @@ export class ClientService {
public async killDeadClients() {
var tenMinutes = new Date(new Date().getTime() - (10 * 60 * 1000)).toISOString();
var fiveMinutes = new Date(new Date().getTime() - (5 * 60 * 1000)).toISOString();
return await this.clientRepository
.createQueryBuilder()
.update(ClientEntity)
.set({ deletedAt: () => "DATETIME('now')" })
.where("deletedAt IS NULL AND updatedAt < :tenMinutes", { tenMinutes })
.where("deletedAt IS NULL AND updatedAt < :fiveMinutes", { fiveMinutes })
.execute();
}