mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Revert prisma disconnect change.
This commit is contained in:
parent
3604a845b4
commit
72065d0a09
2 changed files with 4 additions and 8 deletions
10
lib/db.js
10
lib/db.js
|
|
@ -33,11 +33,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||
export default prisma;
|
||||
|
||||
export async function runQuery(query) {
|
||||
return query
|
||||
.catch(e => {
|
||||
console.error(e);
|
||||
})
|
||||
.finally(() => {
|
||||
prisma.$disconnect();
|
||||
});
|
||||
return query.catch(e => {
|
||||
console.error(e);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue