(subscribedEvents []string, eventType string, userId string)
| 228 | if len(eventarray) == 1 && eventarray[0] == "" { |
| 229 | subscribedEvents = []string{} |
| 230 | } else { |
| 231 | for _, arg := range eventarray { |
| 232 | arg = strings.TrimSpace(arg) |
| 233 | if arg != "" && Find(supportedEventTypes, arg) { |
| 234 | subscribedEvents = append(subscribedEvents, arg) |
| 235 | } |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | return subscribedEvents, nil |
| 240 | } |
| 241 | |
| 242 | func getUserWebhookUrl(token string) string { |
| 243 | webhookurl := "" |
no test coverage detected