Fixed #16689: re-add note field in API files listing for AssetModel

This commit is contained in:
r-xyz
2025-04-13 00:33:22 +02:00
parent 0d6a83197a
commit 565b8f5c7f
2 changed files with 36 additions and 3 deletions
@@ -105,6 +105,7 @@ class AssetModelsTransformer
$array = [
'id' => (int) $file->id,
'filename' => e($file->filename),
'note' => $file->note,
'url' => route('show/modelfile', [$assetmodel->id, $file->id]),
'created_by' => ($file->adminuser) ? [
'id' => (int) $file->adminuser->id,