mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
workaround for build error
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { GetServerSideProps, NextApiHandler, NextApiRequest } from 'next'
|
||||
import { GetServerSideProps } from 'next'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import Footer from '../../../../components/footer'
|
||||
import Header from '../../../../components/header'
|
||||
@@ -17,7 +17,7 @@ import { getServerSideBooking } from '../../../../lib/getServerSideProps'
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = withSession(
|
||||
async (context) => {
|
||||
const { req, res, params } = context
|
||||
const { req, res } = context
|
||||
|
||||
const authenticatedUser = authenticate(req, res)
|
||||
if (!authenticatedUser) {
|
||||
@@ -33,6 +33,8 @@ export const getServerSideProps: GetServerSideProps = withSession(
|
||||
const result = await getServerSideBooking(context)
|
||||
return {
|
||||
...result,
|
||||
// TODO: have a closer look at this type issue. Seems like a bug
|
||||
// @ts-ignore
|
||||
props: { ...result.props, milageMax },
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user