mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Add Reset / Delete functionality.
This commit is contained in:
parent
4f098a34c1
commit
30743feb0e
6 changed files with 26 additions and 29 deletions
|
|
@ -16,13 +16,7 @@ export async function deleteUser(userId) {
|
|||
|
||||
return client
|
||||
.$transaction([
|
||||
client.pageview.deleteMany({
|
||||
where: { websiteId: { in: websiteIds } },
|
||||
}),
|
||||
client.eventData.deleteMany({
|
||||
where: { event: { websiteId: { in: websiteIds } } },
|
||||
}),
|
||||
client.event.deleteMany({
|
||||
client.websiteEvent.deleteMany({
|
||||
where: { websiteId: { in: websiteIds } },
|
||||
}),
|
||||
client.session.deleteMany({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue