diff --git a/connectors/src/connectors/confluence/temporal/activities.ts b/connectors/src/connectors/confluence/temporal/activities.ts index 50be2df6cf06..dc2e7627e0d2 100644 --- a/connectors/src/connectors/confluence/temporal/activities.ts +++ b/connectors/src/connectors/confluence/temporal/activities.ts @@ -614,7 +614,7 @@ export async function confluenceGetReportPersonalActionActivity( const { connectorId, userAccountId } = params; const connector = await fetchConfluenceConnector(connectorId); - if (connector.hasExternalAuthError()) { + if (connector.isAuthTokenRevoked) { return false; } diff --git a/connectors/src/resources/connector_resource.ts b/connectors/src/resources/connector_resource.ts index 1b59fd66ef20..9b446f3de7eb 100644 --- a/connectors/src/resources/connector_resource.ts +++ b/connectors/src/resources/connector_resource.ts @@ -153,7 +153,7 @@ export class ConnectorResource extends BaseResource { return this.update({ pausedAt: new Date() }); } - hasExternalAuthError() { + get isAuthTokenRevoked() { return this.errorType === "oauth_token_revoked"; } }