mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 12:07:07 +03:00
Await promise not being awaited
This commit is contained in:
@@ -25,7 +25,7 @@ export async function getConfigEndpoint(req: Request, res: Response): Promise<Re
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
value: getServerConfig(key)
|
value: await getServerConfig(key)
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger.error(e as string);
|
Logger.error(e as string);
|
||||||
|
|||||||
Reference in New Issue
Block a user