fix: pass appId to /oauth/installedLocations request
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
parent
59b0a8c93f
commit
65c1754bab
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user