From 40ffc746e3b580518fd196ce0c86c42ba5fb0c14 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Fri, 16 Aug 2024 11:38:46 +0200 Subject: [PATCH] chore: Update getThemeFromId to use async/await --- src/app/api/get-theme/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/get-theme/route.ts b/src/app/api/get-theme/route.ts index f65b33d..9421643 100644 --- a/src/app/api/get-theme/route.ts +++ b/src/app/api/get-theme/route.ts @@ -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" }); }