kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at cd7cada2f86b4e866a15b4323bb8d6d7ab5bba8b 16 lines 433 B view raw
1import { desc, eq } from "drizzle-orm"; 2import db from "../../database"; 3import { notificationTable } from "../../database/schema"; 4 5async function getNotifications(userId: string) { 6 const notifications = await db 7 .select() 8 .from(notificationTable) 9 .where(eq(notificationTable.userId, userId)) 10 .orderBy(desc(notificationTable.createdAt)) 11 .limit(50); 12 13 return notifications; 14} 15 16export default getNotifications;