mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
replace uuid pkg
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import * as mongoose from 'mongoose'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import {
|
||||
dateFormatBackend,
|
||||
getDays,
|
||||
@@ -42,7 +41,7 @@ const BookingSchema = new mongoose.Schema(
|
||||
// need a seperate uuid to be able to target a booking anonimously
|
||||
uuid: {
|
||||
type: String,
|
||||
default: uuidv4,
|
||||
default: () => crypto.randomUUID(),
|
||||
index: true,
|
||||
},
|
||||
name: { type: String, required: true },
|
||||
|
||||
Reference in New Issue
Block a user