Skip to content

Commit c700165

Browse files
committed
fix: correct property name for file UUID in FileElementController
The FileElementService::getVisibleElementFromProperties() method expects the 'uuid' key but the controller was passing 'fileUuid', causing the file lookup to fail with 'File not found for visible element' error. This fixes the issue where creating file elements (visible signature elements) via the API endpoint /api/v1/file-element/{uuid} was failing with a 404 error. Fixes: Behat test 'Request to sign using email as identifier and when is necessary to use visible elements' Signed-off-by: Vitor Mattos <[email protected]>
1 parent 16856a9 commit c700165

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/FileElementController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function post(string $uuid, int $signRequestId, ?int $elementId = null, ?
6262
'signRequestId' => $signRequestId,
6363
'coordinates' => $coordinates,
6464
'metadata' => $metadata,
65-
'fileUuid' => $uuid,
65+
'uuid' => $uuid,
6666
'fileId' => $fileId,
6767
];
6868
try {

0 commit comments

Comments
 (0)