Skip to content

Commit

Permalink
EDF [#6] - add banner attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Batiste1998 committed Nov 20, 2024
1 parent a0a4b8c commit 7172c31
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const EventSchema = new Schema({
validate: [value => !value || isPhoneOk(value), 'Le numéro de téléphone doit commencer par 0 ou +33'],
set: v => v?.replace(/^0/, '+33'),
required: [true, 'Le numéro de téléphone de l\'organisateur est obligatoire'],
},
banner: {
type: String,
required: false
}
}, schemaOptions)

Expand Down

0 comments on commit 7172c31

Please sign in to comment.