Skip to content

Commit

Permalink
EDF: [premieroctet#148] quantity_max_per_user must be > 0 in eventTic…
Browse files Browse the repository at this point in the history
…ket schema
  • Loading branch information
Bastien-Wappizy committed Dec 19, 2024
1 parent b1f9aa0 commit b8a2185
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const EventTicketSchema = new Schema({
quantity_max_per_user: {
type: Number,
required: true,
default: 1
default: 1,
validate: [v => v>0,`Le nombre maximum de billet par personne doit être d'au moins 1`]
},
price_visibility: {
type: String,
Expand Down

0 comments on commit b8a2185

Please sign in to comment.