Browse Source

fix CleanDb job

Olivier Massot 1 năm trước cách đây
mục cha
commit
a0791bd2ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Service/Cron/Job/CleanDb.php

+ 1 - 1
src/Service/Cron/Job/CleanDb.php

@@ -146,7 +146,7 @@ class CleanDb extends BaseCronJob implements CronjobInterface
 
         $sql = 'DELETE
                 FROM opentalent.Message
-                where (m.dateSent < :maxDate or (m.dateSent is null and m.createDate < :maxDate)) and isSystem = true and id > 0;';
+                where (dateSent < :maxDate or (dateSent is null and createDate < :maxDate)) and isSystem = true and id > 0;';
 
         $stmt = $this->connection->prepare($sql);
         $purgedMessage = $stmt->executeStatement(['maxDate' => $maxDate->format('c')]);