fix: [CODE-2728]: fix webhook internal url to not read from db (#2985)

* fix: [CODE-2728]: fix webhook internal url to not read from db
This commit is contained in:
Abhinav Singh 2024-11-13 02:02:59 +00:00 committed by Harness
parent 321491057a
commit c7d9a9d69c

View File

@ -328,7 +328,7 @@ func (s *Service) prepareHTTPRequest(ctx context.Context, execution *types.Webho
execution.Retriggerable = true
// create request (url + body)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, webhook.URL, bBuff)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bBuff)
if err != nil {
// ASSUMPTION: there was an issue with the static user input, not retriable
tErr := fmt.Errorf("failed to create request: %w", err)