fix: pass appId to /oauth/installedLocations request
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

The endpoint requires appId (GHL client ID) as a query parameter.
Without it the API returns 422 "appId must be a string".

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Head of Product & Engineering 2026-04-06 11:09:28 +02:00
parent 59b0a8c93f
commit 65c1754bab

View File

@ -295,6 +295,7 @@ func (h *OAuthHandler) getCompanyLocations(ctx context.Context, companyAccessTok
}
q := req.URL.Query()
q.Set("companyId", companyID)
q.Set("appId", h.clientID)
q.Set("isInstalled", "true")
req.URL.RawQuery = q.Encode()
req.Header.Set("Authorization", "Bearer "+companyAccessToken)