Add reset website statistics to settings
This commit is contained in:
@@ -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