fix: unassign team activity message (#5969)

This commit is contained in:
Tejaswini Chile
2022-11-29 13:35:08 +05:30
committed by GitHub
parent 4755031e1d
commit a397f01692
2 changed files with 43 additions and 3 deletions

View File

@@ -73,7 +73,8 @@ module ActivityMessageHandler
end
def generate_team_change_activity_key
key = team_id ? 'assigned' : 'removed'
team = Team.find_by(id: team_id)
key = team.present? ? 'assigned' : 'removed'
key += '_with_assignee' if key == 'assigned' && saved_change_to_assignee_id? && assignee
key
end