Skip to content

Commit 45554e7

Browse files
committed
feat: add status field to signer data in file info
Include signer status in the signers array returned by file info endpoint to allow frontend to display draft/pending status. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 1d97292 commit 45554e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Service/FileService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ private function associateAllAndFormat(IUser $user, array $files, array $signers
835835
'signed' => null,
836836
'signRequestId' => $signer->getId(),
837837
'signingOrder' => $signer->getSigningOrder(),
838+
'status' => $signer->getStatus(),
838839
'me' => array_reduce($identifyMethodsOfSigner, function (bool $carry, IdentifyMethod $identifyMethod) use ($user): bool {
839840
if ($identifyMethod->getIdentifierKey() === IdentifyMethodService::IDENTIFY_ACCOUNT) {
840841
if ($user->getUID() === $identifyMethod->getIdentifierValue()) {

0 commit comments

Comments
 (0)