Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

refactor: simplify task data destructuring in handleTaskCreated function

Andrejcb4c9bf88464
diff --git a/apps/api/src/github-integration/utils/task-created.ts b/apps/api/src/github-integration/utils/task-created.ts
index b33fa2cfb..452f9607b 100644
--- a/apps/api/src/github-integration/utils/task-created.ts
+++ b/apps/api/src/github-integration/utils/task-created.ts
@@ -11,16 +11,8 @@ export async function handleTaskCreated(data: {
number: number;
projectId: string;
}) {
- const {
- taskId,
- userEmail,
- title,
- description,
- priority,
- status,
- number,
- projectId,
- } = data;
+ const { taskId, userEmail, title, description, priority, status, projectId } =
+ data;
try {
const integration = await getGithubIntegration(projectId);
@@ -61,7 +53,6 @@ export async function handleTaskCreated(data: {
- Task ID: ${taskId}
- Status: ${status}
- Priority: ${priority || "Not set"}
-- Task Number: #${number}
- Assigned to: ${userEmail || "Unassigned"}
---