From 4d538607bd1536c3dc973781f28887ff1add1f65 Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Fri, 2 Aug 2024 17:38:44 +0300 Subject: [PATCH] `IQueryBuilder::PARAM_STR` should be in createNamedParameter Signed-off-by: Alexander Piskun --- lib/Db/TaskProcessing/TaskProcessingProviderMapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/TaskProcessing/TaskProcessingProviderMapper.php b/lib/Db/TaskProcessing/TaskProcessingProviderMapper.php index 9dd75bce..da6a1ab9 100644 --- a/lib/Db/TaskProcessing/TaskProcessingProviderMapper.php +++ b/lib/Db/TaskProcessing/TaskProcessingProviderMapper.php @@ -47,8 +47,8 @@ public function findByAppidName(string $appId, string $name): TaskProcessingProv $qb = $this->db->getQueryBuilder(); return $this->findEntity($qb->select('*') ->from($this->tableName) - ->where($qb->expr()->eq('app_id', $qb->createNamedParameter($appId), IQueryBuilder::PARAM_STR)) - ->andWhere($qb->expr()->eq('name', $qb->createNamedParameter($name), IQueryBuilder::PARAM_STR)) + ->where($qb->expr()->eq('app_id', $qb->createNamedParameter($appId, IQueryBuilder::PARAM_STR))) + ->andWhere($qb->expr()->eq('name', $qb->createNamedParameter($name, IQueryBuilder::PARAM_STR))) ); }