Skip to content

Commit

Permalink
fix(connector): delete connector when sdFactory is disabled
Browse files Browse the repository at this point in the history
Ref: 1221
  • Loading branch information
tfjanjua committed Jan 6, 2025
1 parent f36c976 commit 44bc0a3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ public async Task DeleteConnectorAsync(Guid connectorId, bool deleteServiceAccou
case ConnectorStatusId.PENDING:
await DeleteConnectorWithDocuments(connectorId, result.SelfDescriptionDocumentId.Value, result.ConnectorOfferSubscriptions, connectorsRepository);
break;
// Connector should be able to deleted if the ClearinghouseConnectDisabled bit is disabled and no SD document was part of connector.
case ConnectorStatusId.ACTIVE when _settings.ClearinghouseConnectDisabled:
await DeleteConnectorWithoutDocuments(connectorId, result.ConnectorOfferSubscriptions, connectorsRepository);
break;
case ConnectorStatusId.ACTIVE when result.SelfDescriptionDocumentId != null && result.DocumentStatusId != null:
await DeleteConnector(connectorId, result.ConnectorOfferSubscriptions, result.SelfDescriptionDocumentId.Value, result.DocumentStatusId.Value, connectorsRepository);
break;
Expand Down

0 comments on commit 44bc0a3

Please sign in to comment.