Fix condition for the running status

[MAILPOET-4664]
This commit is contained in:
Jan Lysý
2022-11-15 13:45:08 +01:00
committed by Aschepikov
parent 110859508e
commit c121c60e8c

View File

@@ -225,7 +225,7 @@ class ScheduledTasksRepository extends Repository {
->where('st.deletedAt IS NULL') ->where('st.deletedAt IS NULL')
->where('st.status = :status'); ->where('st.status = :status');
if (in_array(ScheduledTaskEntity::VIRTUAL_STATUS_RUNNING, $statuses)) { if ($status === ScheduledTaskEntity::VIRTUAL_STATUS_RUNNING) {
$tasksQuery = $tasksQuery->orWhere('st.status IS NULL'); $tasksQuery = $tasksQuery->orWhere('st.status IS NULL');
} }