We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a13d55 commit 5f1ba24Copy full SHA for 5f1ba24
api/RestHandler.go
@@ -432,6 +432,10 @@ func (handler RestHandlerImpl) GetAllWebhookEventConfigForHost(w http.ResponseWr
432
var webhookEventConfigArr []*git.WebhookEventConfig
433
if request.GitHostName != "" {
434
webhookEventConfigArr, err = handler.repositoryManager.GetAllWebhookEventConfigForHostName(request.GitHostName)
435
+ if webhookEventConfigArr == nil || len(webhookEventConfigArr) == 0 {
436
+ //fallback to try with gitHostId
437
+ webhookEventConfigArr, err = handler.repositoryManager.GetAllWebhookEventConfigForHost(request.GitHostId)
438
+ }
439
} else {
440
webhookEventConfigArr, err = handler.repositoryManager.GetAllWebhookEventConfigForHost(request.GitHostId)
441
}
0 commit comments