diff --git a/server/src/controller/metricsController.ts b/server/src/controller/metricsController.ts index 65d9438..74edcef 100644 --- a/server/src/controller/metricsController.ts +++ b/server/src/controller/metricsController.ts @@ -51,8 +51,8 @@ router.get("/", async (req: Request, res: Response) => { locationsTotal.set((await locationService.getAllLocations()).length); wifiLocationTotal.set((await wifiLocationService.getAllWifiLocations()).length); - wifiLocationNotResolvable.set((await wifiLocationService.getAllWifiLocationsByNotResolvable).length); - wifiLocationRequestLimitExceeded.set((await wifiLocationService.getAllWifiLocationsByRequestLimitExceeded).length); + wifiLocationNotResolvable.set((await wifiLocationService.getAllWifiLocationsByNotResolvable()).length); + wifiLocationRequestLimitExceeded.set((await wifiLocationService.getAllWifiLocationsByRequestLimitExceeded()).length); // Increment the counter with labels requestCounter.inc({ method: req.method, route: req.route.path, status: 200 });