mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Removed disconnect code.
This commit is contained in:
parent
e2b2238fb9
commit
dca51050e8
2 changed files with 4 additions and 8 deletions
|
|
@ -16,13 +16,9 @@ export function getDatabase() {
|
|||
}
|
||||
|
||||
export async function runQuery(query) {
|
||||
return query
|
||||
.catch(e => {
|
||||
throw e;
|
||||
})
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect();
|
||||
});
|
||||
return query.catch(e => {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
|
||||
export async function rawQuery(query, params = []) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue