⚡ 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): validate task creation data and update notification content
Andrej Acevskic31d94f9cfaa
diff --git a/apps/api/src/activity/index.ts b/apps/api/src/activity/index.tsindex e560e36b9..c522a40f2 100644--- a/apps/api/src/activity/index.ts+++ b/apps/api/src/activity/index.ts@@ -159,6 +159,9 @@ subscribeToEvent<{type: string;content: string;}>("task.created", async (data) => {+ if (!data.userId || !data.taskId || !data.type || !data.content) {+ return;+ }await createActivity(data.taskId, data.type, data.userId, data.content);});diff --git a/apps/api/src/notification/index.ts b/apps/api/src/notification/index.tsindex 5157afa14..3491b363d 100644--- a/apps/api/src/notification/index.ts+++ b/apps/api/src/notification/index.ts@@ -162,8 +162,8 @@ subscribeToEvent<{if (data.userId) {await createNotification({userId: data.userId,- title: "New task assigned",- content: `You have been assigned to task: ${data.title}`,+ title: "New Task Created",+ content: `Task "${data.title}" was created`,type: "task_created",resourceId: data.taskId,resourceType: "task",