mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
remove *Document intefaces from FE code
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { Error } from 'mongoose'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { BookingDocument } from '../../../db/booking'
|
||||
import { Booking } from '../../../db/booking'
|
||||
import { createBooking } from '../../../db/index'
|
||||
import { sendReceivedBookingAdminMail, sendReceivedBookingBookerMail } from '../../../helpers/mail'
|
||||
import {
|
||||
sendReceivedBookingAdminMail,
|
||||
sendReceivedBookingBookerMail,
|
||||
} from '../../../helpers/mail'
|
||||
|
||||
export default async function userHandler(
|
||||
req: NextApiRequest,
|
||||
@@ -10,7 +13,7 @@ export default async function userHandler(
|
||||
) {
|
||||
const { method } = req
|
||||
|
||||
let booking: BookingDocument
|
||||
let booking: Booking
|
||||
|
||||
switch (method) {
|
||||
case 'POST':
|
||||
|
||||
Reference in New Issue
Block a user