kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
at main 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;