From 992c65a39d97d088bdef71c7b3fea777309af931 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 21 Nov 2022 17:06:04 -0500 Subject: [PATCH] Fix sqlite tests --- src/routes/getStatus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getStatus.ts b/src/routes/getStatus.ts index 270e35a..34abd8c 100644 --- a/src/routes/getStatus.ts +++ b/src/routes/getStatus.ts @@ -44,7 +44,7 @@ export async function getStatus(req: Request, res: Response): Promise loadavg: os.loadavg().slice(1), // only return 5 & 15 minute load average statusRequests, hostname: os.hostname(), - postgresStats: (db as Postgres)?.getStats(), + postgresStats: (db as Postgres)?.getStats?.(), redisStats: getRedisStats(), }; return value ? res.send(JSON.stringify(statusValues[value])) : res.send(statusValues);