chore: Update getThemeFromId to use async/await
This commit is contained in:
@@ -16,7 +16,7 @@ export async function GET(request: Request, response: Response) {
|
|||||||
if (!id) {
|
if (!id) {
|
||||||
return Response.json({ error: "id is required" });
|
return Response.json({ error: "id is required" });
|
||||||
}
|
}
|
||||||
const theme = getThemeFromId(id);
|
const theme = await getThemeFromId(id);
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
return Response.json({ error: "theme not found" });
|
return Response.json({ error: "theme not found" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user