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 39e2dfae265f26c8d6d888a560f50ab2d5d58b3f 21 lines 447 B view raw
1import db from "../../database"; 2import { activityTable } from "../../database/schema"; 3 4async function createActivity( 5 taskId: string, 6 type: string, 7 userId: string, 8 content: string | null, 9 eventData?: Record<string, unknown> | null, 10) { 11 const activity = await db.insert(activityTable).values({ 12 taskId, 13 type, 14 userId, 15 content, 16 eventData: eventData ?? null, 17 }); 18 return activity; 19} 20 21export default createActivity;