umami/queries/admin/website/resetWebsite.js
2022-08-25 22:04:32 -07:00

6 lines
195 B
JavaScript

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