another try to fix types for models

This commit is contained in:
Thomas Ruoff
2020-09-03 23:27:30 +02:00
committed by Thomas Ruoff
parent 82270e944c
commit 038e2b2420
5 changed files with 29 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { Booking } from '../../../db/booking'
import { BookingDocument } from '../../../db/booking'
import { BOOKING_STATUS } from '../../../db/bookingStatus'
import { getBookingByUUID } from '../../../db/index'
@@ -14,7 +14,7 @@ export default async function userHandler(
const uuid = Array.isArray(uuids) ? uuids[0] : uuids
let booking: Booking
let booking: BookingDocument
switch (method) {
case 'PATCH':