Skip to content

fix(affiliate): validate commission inputs - #62

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
qwenbona:fix/affiliate-commission
Jul 30, 2026
Merged

fix(affiliate): validate commission inputs#62
ralyodio merged 1 commit into
moshcoder:masterfrom
qwenbona:fix/affiliate-commission

Conversation

@qwenbona

Copy link
Copy Markdown
Contributor

Number(body.commission_pct) coerces booleans, arrays, and objects without complaint. Reject non-numeric types and out-of-range values with a 400 before they reach the DB layer.

Fixes #50

Number(body.commission_pct) coerces booleans, arrays, and objects
without complaint. Reject non-numeric types and out-of-range values
with a 400 before they reach the DB layer.

Fixes moshcoder#50
@ralyodio
ralyodio merged commit 1871332 into moshcoder:master Jul 30, 2026
2 checks passed
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