mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
return -1 for unknown dbVersion
This commit is contained in:
parent
00dae6d6a1
commit
0e3eeece01
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue