mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
another try to fix types for models
This commit is contained in:
committed by
Thomas Ruoff
parent
82270e944c
commit
038e2b2420
@@ -1,6 +1,6 @@
|
||||
import { Error } from 'mongoose'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { Booking } from '../../../db/booking'
|
||||
import { BookingDocument } from '../../../db/booking'
|
||||
import { createBooking } from '../../../db/index'
|
||||
import { sendReceivedBookingMail } from '../../../helpers/mail'
|
||||
|
||||
@@ -10,7 +10,7 @@ export default async function userHandler(
|
||||
) {
|
||||
const { method } = req
|
||||
|
||||
let booking: Booking
|
||||
let booking: BookingDocument
|
||||
|
||||
switch (method) {
|
||||
case 'POST':
|
||||
|
||||
Reference in New Issue
Block a user