Added transaction to creating an SES setting & upgraded to Prisma ORM 6 (#109)
* Added transaction to creating SES setting & upgraded Prisma to Prisma ORM 6 * Keep logging of the queue status in --------- Co-authored-by: Kumarion <121711454+Kumarion@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { PrismaClient } from "@prisma/client";
|
||||
import { withOptimize } from "@prisma/extension-optimize";
|
||||
import { env } from "~/env";
|
||||
|
||||
const createPrismaClient = () => {
|
||||
@@ -7,9 +6,6 @@ const createPrismaClient = () => {
|
||||
log:
|
||||
env.NODE_ENV === "development" ? ["query", "error", "warn"] : ["error"],
|
||||
});
|
||||
if (env.ENABLE_PRISMA_CLIENT) {
|
||||
return client.$extends(withOptimize());
|
||||
}
|
||||
|
||||
return client;
|
||||
};
|
||||
|
Reference in New Issue
Block a user