diff --git a/service/response/team_response.go b/service/response/team_response.go index e8d6c7f..73eea58 100644 --- a/service/response/team_response.go +++ b/service/response/team_response.go @@ -14,6 +14,7 @@ type TeamResponse struct { Participants []UserResponse `json:"participants,omitempty"` UpdatedAt time.Time `json:"lastUpdatedAt,omitempty"` WebhookSlackChannelName string `json:"webhookSlackChannelName"` + WebhookSlackChannelId string `json:"webhookSlackChannelId"` } func ConvertToTeamResponse(teamEntity team.TeamEntity) TeamResponse { diff --git a/service/team_service.go b/service/team_service.go index bc96c1c..08de39a 100644 --- a/service/team_service.go +++ b/service/team_service.go @@ -68,6 +68,7 @@ func (t *teamService) GetTeams(c *gin.Context) { } channel, err := t.client.GetConversationInfo(team.WebhookSlackChannel) teamResponse := service.ConvertToTeamResponse(*team) + teamResponse.WebhookSlackChannelId = team.WebhookSlackChannel if err != nil { t.logger.Error("error in getting channel info", zap.String("channelId", team.WebhookSlackChannel), zap.Error(err)) teamResponse.WebhookSlackChannelName = "not found"