Skip to content

Commit

Permalink
EDF: [premieroctet#96] add timezone default value in event schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 10, 2024
1 parent 1602759 commit 0d55e14
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const mongoose = require('mongoose')
const { schemaOptions } = require('../../../utils/schemas')
const { EVENT_VISIBILITY, EVENT_VISIBILITY_PUBLIC, BOOLEAN_ENUM, EVENT_AVAILABILITIES, TIMEZONES } = require('../consts')
const { EVENT_VISIBILITY, EVENT_VISIBILITY_PUBLIC, BOOLEAN_ENUM, EVENT_AVAILABILITIES, TIMEZONES, TIMEZONE_PLUS_1 } = require('../consts')
const { DUMMY_REF } = require('../../../utils/database')
const { isEmailOk, isPhoneOk } = require('../../../../utils/sms')
const AddressSchema = require('../../../models/AddressSchema')
Expand Down Expand Up @@ -190,7 +190,8 @@ const EventSchema = new Schema({
timezone: {
type: String,
enum: Object.keys(TIMEZONES),
required: false
required: false,
default: TIMEZONE_PLUS_1
},
tablemap: {
type: Schema.Types.ObjectId,
Expand Down

0 comments on commit 0d55e14

Please sign in to comment.