From 0e3eeece0167b5a99f0649c53da31d732c7dbfff Mon Sep 17 00:00:00 2001 From: Michael C Date: Thu, 8 Sep 2022 16:38:05 -0400 Subject: [PATCH] return -1 for unknown dbVersion --- src/routes/getStatus.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/getStatus.ts b/src/routes/getStatus.ts index 1295790..b817450 100644 --- a/src/routes/getStatus.ts +++ b/src/routes/getStatus.ts @@ -18,6 +18,7 @@ export async function getStatus(req: Request, res: Response): Promise }) .catch(e => { Logger.error(`status: SQL query timed out: ${e}`); + return -1; }); let statusRequests: unknown = 0; const numberRequests = await promiseOrTimeout(redis.increment("statusRequest"), 5000)