chore: remove commented code from prisma.ts
Some checks failed
Build / build (push) Failing after 33s
Some checks failed
Build / build (push) Failing after 33s
This commit is contained in:
parent
fb76266250
commit
fb011e80c2
@ -2,14 +2,5 @@ import { PrismaClient, Prisma } from "@server/../../generated/prisma";
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
// const resolvePrismaCodeToHttpCode = (error: Prisma.PrismaClientKnownRequestError) => {
|
||||
// switch (error.code) {
|
||||
// case "P2011":
|
||||
// return 0;
|
||||
// default:
|
||||
// throw new Error(`Unhandled prisma error code: '${error.code}'`);
|
||||
// }
|
||||
// }
|
||||
|
||||
export { Prisma };
|
||||
export default prisma;
|
||||
export default prisma;
|
||||
|
Loading…
x
Reference in New Issue
Block a user