Skip to content

Commit 6b0812b

Browse files
committed
Add debug calls
1 parent c78d1ed commit 6b0812b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-intercom/src/setup-intercom.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,15 @@ function getAutoUpdateEndpoint() {
129129
*/
130130
async function fetchIntegrations(): Promise<{ intercom: boolean }> {
131131
const url = `${getAutoUpdateEndpoint()}/api/v2/integrations`;
132+
debug('requesting integrations status', { url });
132133
const response = await fetch(url);
133134
if (!response.ok) {
134135
throw new Error(
135136
`Expected an OK response, got ${response.status} '${response.statusText}'`
136137
);
137138
}
138139
const result = await response.json();
139-
debug('Got integrations response', { result });
140+
debug('got integrations response', { result });
140141
if (typeof result.intercom !== 'boolean') {
141142
throw new Error(`Expected 'intercom' to be a boolean`);
142143
}

0 commit comments

Comments
 (0)