Renames all files, components, database schema, API routes, hooks, messages, and build config from "recording" to "replay" terminology. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
import prisma from '@/lib/prisma';
|
|
|
|
export async function deleteReplaysByWebsite(websiteId: string) {
|
|
return relationalQuery(websiteId);
|
|
}
|
|
|
|
async function relationalQuery(websiteId: string) {
|
|
return prisma.client.sessionReplay.deleteMany({
|
|
where: { websiteId },
|
|
});
|
|
}
|