mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
send mail
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as mongoose from 'mongoose'
|
||||
|
||||
import { getDays, dateFormat } from '../helpers/date'
|
||||
import { getDays, dateFormatBackend } from '../helpers/date'
|
||||
|
||||
const BookingSchema = new mongoose.Schema(
|
||||
{
|
||||
@@ -12,10 +12,15 @@ const BookingSchema = new mongoose.Schema(
|
||||
startDate: {
|
||||
type: Date,
|
||||
required: true,
|
||||
get: dateFormat,
|
||||
get: dateFormatBackend,
|
||||
min: new Date(),
|
||||
},
|
||||
endDate: {
|
||||
type: Date,
|
||||
required: false,
|
||||
get: dateFormatBackend,
|
||||
min: new Date(),
|
||||
},
|
||||
endDate: { type: Date, required: false, get: dateFormat, min: new Date() },
|
||||
status: {
|
||||
type: String,
|
||||
enum: ['requested', 'confirmed', 'rejected'],
|
||||
|
||||
Reference in New Issue
Block a user