use uuid only additionally for booking

This commit is contained in:
Thomas Ruoff
2020-08-20 23:21:48 +02:00
parent fe10869ca0
commit 8c3149e762
3 changed files with 3 additions and 7 deletions

View File

@@ -5,7 +5,8 @@ import { getDays, dateFormatBackend } from '../helpers/date'
const BookingSchema = new mongoose.Schema(
{
_id: {
// need a seperate uuid to be able to target a booking anonimously
uuid: {
type: String,
default: uuidv4,
},