diff --git a/lib/Db/SignRequestMapper.php b/lib/Db/SignRequestMapper.php index ac43834215..3a7f463b84 100644 --- a/lib/Db/SignRequestMapper.php +++ b/lib/Db/SignRequestMapper.php @@ -148,10 +148,6 @@ public function getByIdentifyMethodAndFileId(IIdentifyMethod $identifyMethod, in * @return SignRequest[] */ public function getByFileId(int $fileId): array { - $signers = array_filter($this->signers, fn ($f) => $f->getFileId() === $fileId); - if (!empty($signers)) { - return $signers; - } $qb = $this->db->getQueryBuilder(); $qb->select('*') @@ -230,10 +226,6 @@ public function getByNodeId(int $nodeId) { * @return SignRequest[] */ public function getByFileUuid(string $uuid) { - $signers = array_filter($this->signers, fn ($f) => $f->getUuid() === $uuid); - if (count($signers)) { - return $signers; - } $qb = $this->db->getQueryBuilder(); $qb->select('sr.*')