kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { eq } from "drizzle-orm";
2import db from "../../database";
3import { notificationTable } from "../../database/schema";
4
5async function clearNotifications(userId: string) {
6 await db
7 .delete(notificationTable)
8 .where(eq(notificationTable.userId, userId));
9
10 return { success: true };
11}
12
13export default clearNotifications;