Sent campaigns were editable and PATCH bodies were not validated #12
Labels
No labels
bug
dependencies
documentation
feature
phase-summary
security
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vmanne-poc/Postak#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem:
Partial<Dto>, which TypeScript erases at runtime, so the ValidationPipe skipped them.Fix: only DRAFT/SCHEDULED campaigns can be edited or scheduled; explicit
UpdateCampaignDto/UpdateTemplateDtoclasses are validated.Tests: e2e "validates campaign updates" (non-string subject -> 400) and "refuses to ... edit a campaign that was already sent".
Fixed in
v0.7.0.