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