Skip to content

Commit

Permalink
Some restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Boddin committed Sep 14, 2023
1 parent bf8a72b commit 0bdcdcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Server/src/routes/poi.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ export class PoiRoute {
}
const updatePointOfInterest: z.infer<typeof UpdatePointOfInterest> = {
id: poi.uid,
typeId: poi.typeId,
name: poi.name ?? "",
isTurningPoint: poi.isTurningPoint,
description: poi.description ?? undefined,
pos: pos,
typeId: poi.typeId,
isTurningPoint: poi.isTurningPoint,
trackId: poi.trackId
}
res.json(updatePointOfInterest)
Expand Down Expand Up @@ -174,7 +174,7 @@ export class PoiRoute {

const poiToUpdate: POI = await database.pois.getById(poiId)

const geopos: GeoJSON.Feature<GeoJSON.Point> = {
const geopos: Feature<Point> = {
type: "Feature",
geometry: {
type: "Point",
Expand Down

0 comments on commit 0bdcdcb

Please sign in to comment.