Skip to content

Commit

Permalink
Merge pull request #2411 from LibreSign/bugfix/get-signers
Browse files Browse the repository at this point in the history
Fix update signer
  • Loading branch information
vitormattos authored Mar 1, 2024
2 parents d29bbe2 + 78a88f7 commit 5fbe3aa
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Db/SignRequestMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('*')
Expand Down Expand Up @@ -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.*')
Expand Down

0 comments on commit 5fbe3aa

Please sign in to comment.