12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import { usePrisma } from "../utils/prisma";
|
|
|
|
export async function deleteUserTrustedContacts(userId: string) {
|
|
const db = usePrisma();
|
|
return db.trustedContact.deleteMany({ where: { userId } });
|
|
}
|
|
|
|
export async function deleteUserCoachSessions(userId: string) {
|
|
const db = usePrisma();
|
|
return db.coachSession.deleteMany({ where: { userId } });
|
|
}
|