mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Add reset website statistics to settings
This commit is contained in:
parent
ae7186c32a
commit
6e128b2f38
5 changed files with 143 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ export async function updateWebsite(website_id, data) {
|
|||
);
|
||||
}
|
||||
|
||||
export async function resetWebsite(website_id) {
|
||||
return runQuery(prisma.$queryRaw`delete from session where website_id=${website_id}`);
|
||||
}
|
||||
|
||||
export async function deleteWebsite(website_id) {
|
||||
return runQuery(
|
||||
/* Prisma bug, does not cascade on non-nullable foreign keys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue