kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { and, eq } from "drizzle-orm";
2import db from "../../database";
3import { activityTable } from "../../database/schema";
4
5async function updateComment(userId: string, id: string, content: string) {
6 return await db
7 .update(activityTable)
8 .set({ content })
9 .where(and(eq(activityTable.id, id), eq(activityTable.userId, userId)));
10}
11
12export default updateComment;