Fix condition for the running status
[MAILPOET-4664]
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user