Skip to content

fix: normalize array-shaped tags before PATCHing order to OS - #34

Merged
prima-nilesh merged 1 commit into
mainfrom
fix/patch-order-resolve-os-id
Jul 21, 2026
Merged

fix: normalize array-shaped tags before PATCHing order to OS#34
prima-nilesh merged 1 commit into
mainfrom
fix/patch-order-resolve-os-id

Conversation

@prima-nilesh

Copy link
Copy Markdown
Collaborator

return_prime_public's markOsOrderReturned.js builds tags as a JS array (buildReturnedTags dedupes into [...new Set([...])]), but OS's UpdateOrderDto types tags as a comma-separated string and throws an unhandled 500 ("An error occurred while updating the order") on an array instead of a clean 400 — confirmed live against OS directly with the identical array payload.

Verified: wrote a test reproducing the exact 500 first (failed against the unfixed code), fixed by joining array tags into a comma-separated string before forwarding, then confirmed live through the full adapter path against a real order (200, tags applied).

return_prime_public's markOsOrderReturned.js builds tags as a JS array
(buildReturnedTags dedupes into [...new Set([...])]), but OS's
UpdateOrderDto types tags as a comma-separated string and throws an
unhandled 500 ("An error occurred while updating the order") on an
array instead of a clean 400 — confirmed live against OS directly with
the identical array payload.

Verified: wrote a test reproducing the exact 500 first (failed against
the unfixed code), fixed by joining array tags into a comma-separated
string before forwarding, then confirmed live through the full adapter
path against a real order (200, tags applied).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants