update mongoose to 5.8.3 (lots of types changes)

This commit is contained in:
Thomas Ruoff
2024-09-10 22:44:25 +02:00
parent 3ecbd16a2c
commit 32818b7492
22 changed files with 136 additions and 251 deletions

View File

@@ -2,12 +2,12 @@ import React from 'react'
import Link from 'next/link'
import { daysFormatFrontend } from '../helpers/date'
import { BookingDocument } from '../db/booking'
import { IBooking } from '../db/booking'
export default function BookingTable({
booking,
}: {
booking: BookingDocument
booking: IBooking
}) {
const data = [
{ name: 'Status', value: booking.status },
@@ -51,7 +51,7 @@ export default function BookingTable({
</h3>
<p className="mt-1 max-w-2xl text-sm text-gray-500">
Created{' '}
{new Date(booking.createdAt as string).toLocaleString(
{new Date(booking.createdAt).toLocaleString(
new Intl.Locale('de')
)}
</p>