Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Apr 4, 2024
1 parent 84f3f09 commit dd7d43f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export async function confluenceGetReportPersonalActionActivity(
const { connectorId, userAccountId } = params;

const connector = await fetchConfluenceConnector(connectorId);
if (connector.errorType === "oauth_token_revoked") {
if (connector.hasExternalAuthError()) {
return false;
}

Expand Down
4 changes: 4 additions & 0 deletions connectors/src/resources/connector_resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,8 @@ export class ConnectorResource extends BaseResource<ConnectorModel> {
async markAsPaused() {
return this.update({ pausedAt: new Date() });
}

hasExternalAuthError() {
return this.errorType === "oauth_token_revoked";
}
}

0 comments on commit dd7d43f

Please sign in to comment.