Commit 7edf873
authored
Merge pull request #24 from RandomProgramm3r/develop
fix(business): Correct validation for UNIQUE promo updates
PATCH requests to update fields (like description or image_url) on promos with mode='UNIQUE' failed. The validator incorrectly required the `promo_unique` field to be present in the input data.
This commit removes the erroneous check for `promo_unique` presence from the `PromoDetailSerializer.validate` method when handling updates for UNIQUE promos, allowing partial updates to proceed correctly.1 file changed
+0
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | 537 | | |
547 | 538 | | |
548 | 539 | | |
| |||
0 commit comments