refactor: standardize quotation marks across all files and improve code consistency
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { NextResponse } from "next/server"
|
||||
import { prisma } from "@/lib/prisma"
|
||||
import { NextResponse } from "next/server";
|
||||
import { prisma } from "@/lib/prisma";
|
||||
|
||||
export async function POST() {
|
||||
try {
|
||||
@@ -10,15 +10,17 @@ export async function POST() {
|
||||
data: {
|
||||
categoryId: null,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
count: result.count,
|
||||
})
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Error clearing categories:", error)
|
||||
return NextResponse.json({ error: "Failed to clear categories" }, { status: 500 })
|
||||
console.error("Error clearing categories:", error);
|
||||
return NextResponse.json(
|
||||
{ error: "Failed to clear categories" },
|
||||
{ status: 500 },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user