You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Model/Repository/Mysql/TaskRepository.php
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ public function find($id)
37
37
thrownew \RuntimeException(sprintf('Task id=%s is not integer', $id));
38
38
}
39
39
40
-
$query = 'SELECT * FROM tasks WHERE task_id=:id';
40
+
$query = 'SELECT * FROM '. Consts::TASKS_TABLE_NAME .' WHERE task_id=:id';
41
41
$stmt = $this->pdo->prepare($query);
42
42
$stmt->execute([
43
43
'id' => $id
@@ -59,7 +59,7 @@ public function findReserved($limit)
59
59
thrownew \RuntimeException('Limit is not valid');
60
60
}
61
61
62
-
$query = 'SELECT * FROM tasks WHERE identifier=:identifier AND status=:status AND ts_created <= :ts_created ORDER BY ts_created ASC, priority DESC LIMIT :limit';
62
+
$query = 'SELECT * FROM '. Consts::TASKS_TABLE_NAME .' WHERE identifier=:identifier AND status=:status AND ts_created <= :ts_created ORDER BY ts_created ASC, priority DESC LIMIT :limit';
63
63
64
64
$stmt = $this->pdo->prepare($query);
65
65
@@ -87,7 +87,7 @@ public function findWaitingForRetry()
$query = 'SELECT * FROM tasks WHERE status=:status AND ts_started<=:ts_started ORDER BY ts_started ASC, priority DESC LIMIT :limit';
90
+
$query = 'SELECT * FROM '. Consts::TASKS_TABLE_NAME .' WHERE status=:status AND ts_started<=:ts_started ORDER BY ts_started ASC, priority DESC LIMIT :limit';
0 commit comments