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:
Arxk
2025-03-08 01:29:52 -05:00
committed by KM Koushik
parent d7239d6616
commit 9c5da6dca6
9 changed files with 160 additions and 426 deletions

View File

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