File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ export default class TasksService {
122122
123123 const newTask = taskTransformer ( createdTask ) ;
124124
125- await sendSlackTaskAssignedNotificationToUsers ( newTask , assignees , organization . organizationId ) ;
125+ const nonSelfAssigneeIds = assignees . filter ( ( id ) => id !== createdBy . userId ) ;
126+ await sendSlackTaskAssignedNotificationToUsers ( newTask , nonSelfAssigneeIds , organization . organizationId ) ;
126127
127128 return newTask ;
128129 }
@@ -254,7 +255,8 @@ export default class TasksService {
254255 } )
255256 ) ;
256257
257- await sendSlackTaskAssignedNotificationToUsers ( updatedTask , newAssigneeIds , organization . organizationId ) ;
258+ const nonSelfAssigneeIds = newAssigneeIds . filter ( ( id ) => id !== user . userId ) ;
259+ await sendSlackTaskAssignedNotificationToUsers ( updatedTask , nonSelfAssigneeIds , organization . organizationId ) ;
258260
259261 return updatedTask ;
260262 }
You can’t perform that action at this time.
0 commit comments