Require a stage-move reason and record it on the lead timeline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-18 18:18:52 +03:30
co-authored by Cursor
parent cd51439353
commit c185348c2d
7 changed files with 278 additions and 23 deletions
+2 -2
View File
@@ -329,7 +329,7 @@ export class LeadsController {
@Roles('owner', 'admin')
bulkStage(@CurrentUser() user: Actor, @Body() dto: BulkLeadStageDto) {
return this.leads
.bulkStage(user, dto.leadIds, dto.stageId)
.bulkStage(user, dto.leadIds, dto.stageId, dto.reason)
.then((count) => ({ count }));
}
@@ -393,7 +393,7 @@ export class LeadsController {
@Param('id') id: string,
@Body() dto: MoveLeadDto,
) {
return this.leads.move(user, id, dto.stageId, dto.position);
return this.leads.move(user, id, dto.stageId, dto.position, dto.reason);
}
@Get(':id/sms-history')