mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated prisma and added disconnect.
This commit is contained in:
parent
ce2ca57aba
commit
e64b35f701
3 changed files with 23 additions and 19 deletions
|
|
@ -16,9 +16,13 @@ export function getDatabase() {
|
|||
}
|
||||
|
||||
export async function runQuery(query) {
|
||||
return query.catch(e => {
|
||||
throw e;
|
||||
});
|
||||
return query
|
||||
.catch(e => {
|
||||
throw e;
|
||||
})
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect();
|
||||
});
|
||||
}
|
||||
|
||||
export async function rawQuery(query, params) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue