changed to Daphnis
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { PrismaClient as lachesisClient } from "@/prisma/schemas/lachesis/generated/lachesis";
|
||||
import { PrismaClient as dahnisClient } from "@/prisma/schemas/daphnis/generated/daphnis";
|
||||
import { PrismaClient as artemisClient } from "@/prisma/schemas/artemis/generated/artemis";
|
||||
|
||||
const lachesisSingleton = () => {
|
||||
return new lachesisClient();
|
||||
const DaphnisSingleton = () => {
|
||||
return new dahnisClient();
|
||||
};
|
||||
|
||||
const aremisSingleton = () => {
|
||||
@ -10,11 +10,11 @@ const aremisSingleton = () => {
|
||||
};
|
||||
|
||||
declare global {
|
||||
var lachesis: undefined | ReturnType<typeof lachesisSingleton>;
|
||||
var daphnis: undefined | ReturnType<typeof DaphnisSingleton>;
|
||||
var artemis: undefined | ReturnType<typeof aremisSingleton>;
|
||||
}
|
||||
|
||||
export const lachesis = globalThis.lachesis ?? lachesisSingleton();
|
||||
export const daphnis = globalThis.daphnis ?? DaphnisSingleton();
|
||||
export const artemis = globalThis.artemis ?? aremisSingleton();
|
||||
|
||||
if (process.env.NODE_ENV !== "production") globalThis.lachesis = lachesis;
|
||||
if (process.env.NODE_ENV !== "production") globalThis.daphnis = daphnis;
|
||||
|
Reference in New Issue
Block a user