mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Moved cli to separate project. Separate database schemas.
This commit is contained in:
parent
585706cc16
commit
48a524e09c
9 changed files with 248 additions and 788 deletions
|
|
@ -20,11 +20,11 @@ let prisma;
|
|||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
prisma = new PrismaClient(options);
|
||||
prisma.on('query', logQuery);
|
||||
prisma.$on('query', logQuery);
|
||||
} else {
|
||||
if (!global.prisma) {
|
||||
global.prisma = new PrismaClient(options);
|
||||
global.prisma.on('query', logQuery);
|
||||
global.prisma.$on('query', logQuery);
|
||||
}
|
||||
|
||||
prisma = global.prisma;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue