umami/queries/admin/website/resetWebsite.js
2022-07-12 15:14:27 -07:00

7 lines
210 B
JavaScript

import { runQuery } from 'lib/queries';
import prisma from 'lib/db';
export async function resetWebsite(website_id) {
return runQuery(prisma.$queryRaw`delete from session where website_id=${website_id}`);
}