Skip to content

Commit

Permalink
Change File path now that command is deserialized directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Jan 17, 2025
1 parent d90e278 commit b050382
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ApiPlatform/Resources/Module/UploadModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'module_write',
],
CQRSCommandMapping: [
'[archive][pathName]' => '[source]',
'[archive].pathName' => '[source]',
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion src/ApiPlatform/Resources/Product/NewProductImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
CQRSQueryMapping: NewProductImage::QUERY_MAPPING,
CQRSCommandMapping: [
'[_context][shopConstraint]' => '[shopConstraint]',
'[image][pathName]' => '[pathName]',
'[image].pathName' => '[pathName]',
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion src/ApiPlatform/Resources/Product/ProductImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
CQRSQueryMapping: ProductImage::QUERY_MAPPING,
CQRSCommandMapping: [
'[_context][shopConstraint]' => '[shopConstraint]',
'[image][pathName]' => '[filePath]',
'[image].pathName' => '[filePath]',
'[legends]' => '[localizedLegends]',
'[cover]' => '[isCover]',
]
Expand Down

0 comments on commit b050382

Please sign in to comment.