Skip to content

Commit

Permalink
Merge pull request #61 from Gemorroj/remove-command
Browse files Browse the repository at this point in the history
fix delete command for postgres
  • Loading branch information
nicklog authored May 7, 2024
2 parents 7a90154 + 05af7f4 commit 19d52f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Repository/CronJobRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ public function findByCommandOrId(string $commandOrId): CronJobCollection
->andWhere(
$qb->expr()->orX(
'p.command = :command',
'p.id = :command',
'p.id = :commandInt',
),
)
->setParameter('command', $commandOrId, Types::STRING)
->setParameter('commandInt', (int) $commandOrId, Types::INTEGER)
->getQuery()
->getResult();

Expand Down

0 comments on commit 19d52f4

Please sign in to comment.