From ee2d4998c8aab450bc05bc7828b49ed86c8646df Mon Sep 17 00:00:00 2001 From: Flavien David Date: Thu, 4 Apr 2024 17:58:02 +0200 Subject: [PATCH] :sparkles: --- connectors/src/connectors/confluence/temporal/activities.ts | 2 +- connectors/src/resources/connector_resource.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"; } }