refactor: standardize quotation marks across all files and improve code consistency

This commit is contained in:
Julien Froidefond
2025-11-27 11:40:30 +01:00
parent cc1e8c20a6
commit b2efade4d5
107 changed files with 9471 additions and 5952 deletions

View File

@@ -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 },
);
}
}