⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(api): enhance deleteComment function to return deleted comment
Andrej Acevski84ed5fc83292
diff --git a/apps/api/src/activity/controllers/delete-comment.ts b/apps/api/src/activity/controllers/delete-comment.tsindex 5f62e7025..cf60ee061 100644--- a/apps/api/src/activity/controllers/delete-comment.ts+++ b/apps/api/src/activity/controllers/delete-comment.ts@@ -3,9 +3,12 @@ import db from "../../database";import { activityTable } from "../../database/schema";async function deleteComment(userId: string, id: string) {- await db+ const [deletedComment] = await db.delete(activityTable)- .where(and(eq(activityTable.id, id), eq(activityTable.userId, userId)));+ .where(and(eq(activityTable.id, id), eq(activityTable.userId, userId)))+ .returning();++ return deletedComment;}export default deleteComment;