Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v committed Sep 30, 2024
1 parent 8309624 commit b0ddb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/snippet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func getConfig(group string) (string, string, error) {
if err := yaml.Unmarshal(data, &communications); err != nil {
return "","", fmt.Errorf("error parsing YAML file: %v", err)
}
socketSlack := communications["group"].(map[string]interface{})["socketSlack"].(map[string]interface{})
socketSlack := communications[group].(map[string]interface{})["socketSlack"].(map[string]interface{})
botToken := socketSlack["botToken"].(string)
channelID := socketSlack["channels"].(map[string]interface{})["default"].(map[string]interface{})["id"].(string)
return botToken, channelID, nil
Expand Down

0 comments on commit b0ddb72

Please sign in to comment.