mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
move queries
This commit is contained in:
parent
910f165103
commit
8aec6d7406
53 changed files with 920 additions and 485 deletions
6
queries/admin/website/resetWebsite.js
Normal file
6
queries/admin/website/resetWebsite.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { runQuery } from 'queries';
|
||||
import prisma from 'lib/db';
|
||||
|
||||
export async function resetWebsite(website_id) {
|
||||
return runQuery(prisma.$queryRaw`delete from session where website_id=${website_id}`);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue