podkrepi-bg / api

Nest.js REST backend for charity platform Podkrepi.bg https://podkrepi.bg/swagger
https://podkrepi.bg
MIT License
82 stars 43 forks source link

add create campaign agreements validation #649

Closed Martbul closed 2 months ago

Martbul commented 2 months ago

if any of the 3 agreements for creating campaign are not checked -> throw a HttpException with status 405

add validation if the 3 agreements are checked(true) add test update create-campaign-application.dto(acceptTermsAndConditions, transparencyTermsAccepted,personalInformationProcessingAccepted are boolean)

Motivation and context

Testing

Steps to test

New endpoints

Environment

New environment variables:

New or updated dependencies:

Dependency name Previous version Updated version Details
dependency/name v1.0.0 v2.0.0
github-actions[bot] commented 2 months ago

✅ Tests will run for this PR. Once they succeed it can be merged.