Skip to content

Commit

Permalink
EDF: [premieroctet#59] add global_rate field to evaluation schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 5, 2024
1 parent 8b170a9 commit cc9248c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const EvaluationSchema = new Schema({
type: Date,
required: false
},
global_rate: {
type: Number,
validate: [value => value <6 && value >0, `La note globale doit être entre 1 et 5`],
required: false
},
}, {...schemaOptions})

/* eslint-disable prefer-arrow-callback */
Expand Down

0 comments on commit cc9248c

Please sign in to comment.