TS fixes
This commit is contained in:
@@ -15,6 +15,7 @@ import timezone from "dayjs/plugin/timezone.js";
|
|||||||
import {generateTimesEvaluation} from "../modules/time/evaluation.service";
|
import {generateTimesEvaluation} from "../modules/time/evaluation.service";
|
||||||
import {citys} from "../../db/schema";
|
import {citys} from "../../db/schema";
|
||||||
import {eq} from "drizzle-orm";
|
import {eq} from "drizzle-orm";
|
||||||
|
import {useNextNumberRangeNumber} from "../utils/functions";
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
dayjs.extend(isoWeek)
|
dayjs.extend(isoWeek)
|
||||||
dayjs.extend(isBetween)
|
dayjs.extend(isBetween)
|
||||||
@@ -147,6 +148,7 @@ export default async function functionRoutes(server: FastifyInstance) {
|
|||||||
|
|
||||||
return reply.send({
|
return reply.send({
|
||||||
...data,
|
...data,
|
||||||
|
//@ts-ignore
|
||||||
state_code: bundeslaender.find(i => i.name === data.countryName)
|
state_code: bundeslaender.find(i => i.name === data.countryName)
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user