mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-14 17:25:02 +01:00
Revert prisma disconnect change.
This commit is contained in:
parent
3604a845b4
commit
72065d0a09
10
lib/db.js
10
lib/db.js
@ -33,11 +33,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
export default prisma;
|
export default prisma;
|
||||||
|
|
||||||
export async function runQuery(query) {
|
export async function runQuery(query) {
|
||||||
return query
|
return query.catch(e => {
|
||||||
.catch(e => {
|
console.error(e);
|
||||||
console.error(e);
|
});
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
prisma.$disconnect();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "0.7.0",
|
"version": "0.8.0",
|
||||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user