Skip to content

Commit

Permalink
Cyberleague: [premieroctet#169] Add position required field to carree…
Browse files Browse the repository at this point in the history
…r schema
  • Loading branch information
Bastien-Wappizy committed Oct 2, 2024
1 parent 8a141a6 commit 279a8d9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ const CarreerSchema = new Schema(
type: Schema.Types.ObjectId,
ref: 'company',
required: [true,`L'entreprise proposant l'emploi est obligatoire`]
}
},
position: {
type: String,
required: [true, `L'intitulé de poste est obligatoire`]
},
},
schemaOptions
)

/* eslint-disable prefer-arrow-callback */
/* eslint-enable prefer-arrow-callback */

module.exports = CarreerSchema
module.exports = CarreerSchema

0 comments on commit 279a8d9

Please sign in to comment.