chore: Update getThemeFromId to use async/await

This commit is contained in:
Mauro Balades
2024-08-16 11:38:46 +02:00
parent 21137e8d11
commit 40ffc746e3

View File

@@ -16,7 +16,7 @@ export async function GET(request: Request, response: Response) {
if (!id) {
return Response.json({ error: "id is required" });
}
const theme = getThemeFromId(id);
const theme = await getThemeFromId(id);
if (!theme) {
return Response.json({ error: "theme not found" });
}