From 25f888f5fae6eab50cef7b58c31111e5d3ef9406 Mon Sep 17 00:00:00 2001 From: Nico Biernat Date: Thu, 14 Sep 2023 23:11:29 +0200 Subject: [PATCH] Remove unused imports (please install a linter so I don't have to be your garbage collector, thanks) --- Server/src/routes/tracker.route.ts | 4 ++-- Server/src/routes/vehicle.route.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Server/src/routes/tracker.route.ts b/Server/src/routes/tracker.route.ts index cf667169..403c7e7f 100644 --- a/Server/src/routes/tracker.route.ts +++ b/Server/src/routes/tracker.route.ts @@ -4,7 +4,7 @@ import { authenticateJWT, jsonParser } from "." import TrackerService from "../services/tracker.service" import { LteRecordField0, LteRecordField6, UplinkLteTracker, UplinkTracker } from "../models/api.tracker" import please_dont_crash from "../utils/please_dont_crash" -import { Log, Prisma, Tracker, Vehicle } from "@prisma/client" +import { Prisma, Tracker, Vehicle } from "@prisma/client" import database from "../services/database.service" import { Tracker as APITracker } from "../models/api" import { z } from "zod" @@ -71,7 +71,7 @@ export class TrackerRoute { return } - const lastLog = await database.logs.getLatestLog(undefined, tracker.uid,) + const lastLog = await database.logs.getLatestLog(undefined, tracker.uid) const apiTracker: z.infer = { id: tracker.uid, diff --git a/Server/src/routes/vehicle.route.ts b/Server/src/routes/vehicle.route.ts index 900356ec..7eb51915 100644 --- a/Server/src/routes/vehicle.route.ts +++ b/Server/src/routes/vehicle.route.ts @@ -5,11 +5,9 @@ import { logger } from "../utils/logger" import { authenticateJWT, jsonParser } from "." import { Log, Track, Tracker, Vehicle, VehicleType } from "@prisma/client" import VehicleService from "../services/vehicle.service" -import { Feature, Point } from "geojson" import please_dont_crash from "../utils/please_dont_crash" import database from "../services/database.service" import GeoJSONUtils from "../utils/geojsonUtils" -import TrackService from "../services/track.service" import { z } from "zod" /**