replace uuid pkg

This commit is contained in:
Thomas Ruoff
2025-03-30 22:11:38 +02:00
parent 7c0c891efc
commit 8e65500875
3 changed files with 3 additions and 19 deletions

View File

@@ -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 },