From 78a88f78ed94153bcb42d207d2eaed67159ddd1c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 1 Mar 2024 00:17:26 -0300 Subject: [PATCH] Fix update signer If we use cache, when we get data of a signer, the cache is populate with this signer. When we try to get all signers, the cacke don't work fine because will return the first signer. Removed the cache. Signed-off-by: Vitor Mattos --- lib/Db/SignRequestMapper.php | 8 -------- 1 file changed, 8 deletions(-) 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.*')