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 9a620ba2f31238f03cd28f1da5ef3838d67e4e8a 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;