mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-25 13:00:24 +08:00
Use DnDKit for ranking tasks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user