This commit is contained in:
Ben Wilson
2023-08-06 19:18:29 -04:00
parent 62f528d55f
commit 0fcb2ec070
+1 -1
View File
@@ -26,7 +26,7 @@ export class ClientService {
.createQueryBuilder() .createQueryBuilder()
.update(ClientEntity) .update(ClientEntity)
.set({ deletedAt: () => "DATETIME('now')" }) .set({ deletedAt: () => "DATETIME('now')" })
.where("deletedAt IS NULL AND updatedAt < :fiveMinutes", { fiveMinutes }) .where("deletedAt IS NULL AND updatedAt < DATETIME(:fiveMinutes)", { fiveMinutes })
.execute(); .execute();
} }