Skip to content

Commit

Permalink
Cyberleague: [#197] change location field type in carreer schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Oct 4, 2024
1 parent 3113bf1 commit 512c563
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const mongoose = require('mongoose')
const { schemaOptions } = require('../../../utils/schemas')
const { CONTRACT_TYPES, WORK_DURATIONS, PAY, STATUSES, STATUS_ACTIVE } = require('../consts')
const { DUMMY_REF } = require('../../../utils/database')
const AddressSchema = require('../../../models/AddressSchema')

const Schema = mongoose.Schema

Expand Down Expand Up @@ -38,7 +39,7 @@ const CarreerSchema = new Schema(
required: true
},
location: {
type: String,
type: AddressSchema,
required: false
},
profil_description: {
Expand Down

0 comments on commit 512c563

Please sign in to comment.