Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class RefreshIntegrationService {
.catch((err) => false);

if (!refresh || !refresh.accessToken) {
// informAboutRefreshError (with the failure cause) already notifies
// the user, and refreshNeeded sets the same flag disconnectChannel
// would — calling disconnectChannel here sent a second, cause-less
// copy of the same email for every failed refresh.
await this._integrationService.refreshNeeded(
integration.organizationId,
integration.id
Expand All @@ -89,11 +93,6 @@ export class RefreshIntegrationService {
cause
);

await this._integrationService.disconnectChannel(
integration.organizationId,
integration
);

return false;
}

Expand Down
Loading