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 14 lines 403 B view raw
1import { and, eq } from "drizzle-orm"; 2import db from "../../database"; 3import { activityTable } from "../../database/schema"; 4 5async function deleteComment(userId: string, id: string) { 6 const [deletedComment] = await db 7 .delete(activityTable) 8 .where(and(eq(activityTable.id, id), eq(activityTable.userId, userId))) 9 .returning(); 10 11 return deletedComment; 12} 13 14export default deleteComment;