mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Refactor query methods.
This commit is contained in:
parent
ee8859d86c
commit
1dfa6d8b16
2 changed files with 92 additions and 205 deletions
|
|
@ -31,9 +31,3 @@ if (process.env.NODE_ENV === 'production') {
|
|||
}
|
||||
|
||||
export default prisma;
|
||||
|
||||
export async function runQuery(query) {
|
||||
return query.catch(e => {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue