style: clean up code formatting and remove trailing whitespace
refactor: reorganize imports and fix type imports
This commit is contained in:
1 parent
d3704602fd
commit
47c04de6fe
232 files changed
+7140
-4798
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { NextRequest } from "next/server";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { prisma } from "@/lib/prisma/app";
|
||||
|
||||
export async function GET(_req: NextRequest) {
|
||||
@@ -15,11 +15,6 @@ export async function GET(_req: NextRequest) {
|
||||
.filter((category): category is string => Boolean(category)),
|
||||
});
|
||||
} catch (e: any) {
|
||||
return Response.json(
|
||||
{ error: e?.message || "Erro" },
|
||||
{ status: 500 }
|
||||
);
|
||||
return Response.json({ error: e?.message || "Erro" }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user