workaround for build error

This commit is contained in:
Thomas Ruoff
2020-10-29 00:25:43 +01:00
parent d41bad0367
commit 7d40ffd1da

View File

@@ -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 },
}
}