Add reset website statistics to settings
This commit is contained in:
5 files changed
+143
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user