Skip to content

Commit 005b1cf

Browse files
committed
Add assignedAt timestamp to task metadata on update and promote draft actions
1 parent 17239fb commit 005b1cf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • apps/codebility/app/home/kanban/[projectId]/[id]

‎apps/codebility/app/home/kanban/[projectId]/[id]/actions.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ export const updateTask = async (
314314
priority: "normal",
315315
projectId: (colData?.kanban_boards as any)?.project_id,
316316
actionUrl: `/home/kanban/${(colData?.kanban_boards as any)?.project_id}/${colData?.board_id}?taskId=${taskId}`,
317-
metadata: { taskId }
317+
metadata: {
318+
taskId,
319+
assignedAt: new Date().toISOString()
320+
}
318321
});
319322
}
320323
}
@@ -1034,7 +1037,10 @@ export const promoteDraft = async (
10341037
priority: "normal",
10351038
projectId: draft.project_id,
10361039
actionUrl: `/home/kanban/${draft.project_id}/${draft.intended_column_id}?taskId=${newTask.id}`,
1037-
metadata: { taskId: newTask.id }
1040+
metadata: {
1041+
taskId: newTask.id,
1042+
assignedAt: new Date().toISOString()
1043+
}
10381044
});
10391045
}
10401046
}

0 commit comments

Comments
 (0)