File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/compass-intercom/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,15 @@ function getAutoUpdateEndpoint() {
129
129
*/
130
130
async function fetchIntegrations ( ) : Promise < { intercom : boolean } > {
131
131
const url = `${ getAutoUpdateEndpoint ( ) } /api/v2/integrations` ;
132
+ debug ( 'requesting integrations status' , { url } ) ;
132
133
const response = await fetch ( url ) ;
133
134
if ( ! response . ok ) {
134
135
throw new Error (
135
136
`Expected an OK response, got ${ response . status } '${ response . statusText } '`
136
137
) ;
137
138
}
138
139
const result = await response . json ( ) ;
139
- debug ( 'Got integrations response' , { result } ) ;
140
+ debug ( 'got integrations response' , { result } ) ;
140
141
if ( typeof result . intercom !== 'boolean' ) {
141
142
throw new Error ( `Expected 'intercom' to be a boolean` ) ;
142
143
}
You can’t perform that action at this time.
0 commit comments