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);