Use DnDKit for ranking tasks

This commit is contained in:
AbdBarho
2022-12-31 09:19:37 +01:00
parent 491b1f6b12
commit ece0227aec
5 changed files with 31524 additions and 4964 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ declare global {
var prisma: PrismaClient | undefined;
}
const client = new PrismaClient();
const client = globalThis.prisma || new PrismaClient();
if (process.env.NODE_ENV !== "production") {
globalThis.prisma = client;
}