Fix sqlite tests

This commit is contained in:
Ajay 2022-11-21 17:06:04 -05:00
parent b6e62aa68f
commit 992c65a39d

View file

@ -44,7 +44,7 @@ export async function getStatus(req: Request, res: Response): Promise<Response>
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);