Skip to content

Commit

Permalink
fix: unify response for custom settings (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored Jun 3, 2024
1 parent a83bbef commit b4f673e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct()
parent::__construct(
properties: [
new Property(
'customSettings',
'items',
ref: CustomSettings::class,
type: 'object'
),
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/CustomSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public function __construct(
])]
public function getAssetCustomSettingsById(int $id): JsonResponse
{
return $this->jsonResponse($this->customSettingsService->getCustomSettings($id));
return $this->jsonResponse(['items' => $this->customSettingsService->getCustomSettings($id)]);
}
}

0 comments on commit b4f673e

Please sign in to comment.