chore: Update getThemeFromId to use async/await
This commit is contained in:
1 parent
21137e8d11
commit
40ffc746e3
1 file changed
+1
-1
@@ -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