Await promise not being awaited

This commit is contained in:
Ajay
2025-04-08 16:02:29 -04:00
parent f67244663e
commit 2ef3d68af0

View File

@@ -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);