Skip to content

Commit

Permalink
Fixed init route
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Boddin committed Sep 4, 2023
1 parent 9c47d5e commit fa2895c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Server/src/routes/init.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { logger } from "../utils/logger"
import TrackService from "../services/track.service"
import { POI, POIType, Track } from "@prisma/client"
import POIService from "../services/poi.service"
import VehicleService from "../services/vehicle.service"
import { Feature, FeatureCollection, GeoJsonProperties, LineString, Point } from "geojson"
import GeoJSONUtils from "../utils/geojsonUtils"
import database from "../services/database.service"
Expand Down Expand Up @@ -196,7 +195,7 @@ export class InitRoute {
private async getAppPoisFromDbPoi(pois: POI[]): Promise<PointOfInterest[]> {
const apiPois: PointOfInterest[] = []
for (const poi of pois) {
const type: POIType | null = await POIService.getPOITypeById(poi.typeId)
const type: POIType | null = await database.pois.getTypeById(poi.typeId)
if (!type) {
logger.error(`Could not determine type of poi with id ${poi.uid}`)
continue
Expand Down

0 comments on commit fa2895c

Please sign in to comment.