Skip to content

Commit 16856a9

Browse files
committed
fix(FileListService): add missing fileId field in files array
When formatting a single file (non-envelope), the files array was missing the fileId field, causing test failures. Added fileId to match the expected API structure. Fixes the test error: 'Undefined array key "fileId"' in FileListServiceTest::testFormatSingleFileStructureByNodeType Signed-off-by: Vitor Mattos <[email protected]>
1 parent b9deb66 commit 16856a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Service/File/FileListService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private function formatSingleFileData(
142142
} else {
143143
$file['filesCount'] = 1;
144144
$file['files'] = [[
145+
'fileId' => $file['id'],
145146
'nodeId' => $file['nodeId'],
146147
'uuid' => $file['uuid'],
147148
'name' => $file['name'],

0 commit comments

Comments
 (0)