mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Rename method to transaction.
This commit is contained in:
parent
f4e0da481e
commit
5f07cecc95
3 changed files with 6 additions and 6 deletions
|
|
@ -2,9 +2,9 @@ import prisma from 'lib/prisma';
|
|||
import redis from 'lib/redis';
|
||||
|
||||
export async function deleteWebsite(website_id) {
|
||||
const { client, multiQuery } = prisma;
|
||||
const { client, transaction } = prisma;
|
||||
|
||||
return multiQuery([
|
||||
return transaction([
|
||||
client.pageview.deleteMany({
|
||||
where: { session: { website: { website_id } } },
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import prisma from 'lib/prisma';
|
|||
import redis from 'lib/redis';
|
||||
|
||||
export async function resetWebsite(website_id) {
|
||||
const { client, multiQuery } = prisma;
|
||||
const { client, transaction } = prisma;
|
||||
|
||||
return multiQuery([
|
||||
return transaction([
|
||||
client.pageview.deleteMany({
|
||||
where: { session: { website: { website_id } } },
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue