Skip to content

Commit

Permalink
Skip reporting Confluence data if oauth token error
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Apr 4, 2024
1 parent 462a75c commit 84f3f09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions connectors/src/connectors/confluence/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ export async function confluenceGetReportPersonalActionActivity(
const { connectorId, userAccountId } = params;

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

// We look for the oldest updated data.
const oldestPageSync = await ConfluencePage.findOne({
Expand Down

0 comments on commit 84f3f09

Please sign in to comment.