Require a stage-move reason and record it on the lead timeline.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user