Skip to content

Commit c1dc8c6

Browse files
authored
fix: board number when the responsible is changed (#1131)
1 parent 642f535 commit c1dc8c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/src/modules/boards/services/update.board.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ export default class UpdateBoardServiceImpl implements UpdateBoardServiceInterfa
237237
newResponsible,
238238
currentResponsible,
239239
board._id,
240-
board.title,
241-
board.slackChannelId
240+
board.slackChannelId,
241+
board.boardNumber
242242
);
243243
}
244244

@@ -295,16 +295,16 @@ export default class UpdateBoardServiceImpl implements UpdateBoardServiceInterfa
295295
newResponsible: ResponsibleType,
296296
currentResponsible: ResponsibleType | undefined,
297297
boardId: string,
298-
boardTitle: string,
299-
slackChannelId: string
298+
slackChannelId: string,
299+
boardNumber: number
300300
) {
301301
this.slackCommunicationService.executeResponsibleChange({
302302
newResponsibleEmail: newResponsible.email,
303303
previousResponsibleEmail: currentResponsible?.email ?? '',
304304
subTeamChannelId: slackChannelId,
305305
responsiblesChannelId: (await this.boardModel.findOne({ dividedBoards: { $in: [boardId] } }))
306306
?.slackChannelId,
307-
teamNumber: Number(boardTitle[boardTitle.length - 1]),
307+
teamNumber: boardNumber,
308308
email: newResponsible.email
309309
});
310310
}

0 commit comments

Comments
 (0)