return -1 for unknown dbVersion

This commit is contained in:
Michael C 2022-09-08 16:38:05 -04:00
parent 00dae6d6a1
commit 0e3eeece01
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4

View file

@ -18,6 +18,7 @@ export async function getStatus(req: Request, res: Response): Promise<Response>
})
.catch(e => {
Logger.error(`status: SQL query timed out: ${e}`);
return -1;
});
let statusRequests: unknown = 0;
const numberRequests = await promiseOrTimeout(redis.increment("statusRequest"), 5000)