Skip to content

Commit

Permalink
EDF: [premieroctet#115] statut member is default value of field statu…
Browse files Browse the repository at this point in the history
…t in company schema
  • Loading branch information
Bastien-Wappizy committed Dec 16, 2024
1 parent 47074ab commit d513b28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const mongoose = require('mongoose')
const { schemaOptions } = require('../../../utils/schemas')
const siret = require('siret')
const { DUMMY_REF } = require('../../../utils/database')
const { SECTOR, COMPANY_SIZES, LOOKING_FOR_MISSION, STATUTS, STATUT_FOUNDER, STATUT_SPONSOR, COMPANY_TURNOVERS } = require('../consts')
const { SECTOR, COMPANY_SIZES, LOOKING_FOR_MISSION, STATUTS, STATUT_FOUNDER, STATUT_SPONSOR, COMPANY_TURNOVERS, STATUT_MEMBER } = require('../consts')
const { isPhoneOk, isEmailOk } = require('../../../../utils/sms')
const AddressSchema = require('../../../models/AddressSchema')

Expand Down Expand Up @@ -142,7 +142,7 @@ const CompanySchema = new Schema(
type: String,
enum: Object.keys(STATUTS),
required: false,
set: v => v || undefined,
default: STATUT_MEMBER
},
sponsor: {
type: [{
Expand Down

0 comments on commit d513b28

Please sign in to comment.