Skip to content

Commit

Permalink
Use new ConfigRepository function in DestinationHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
malikdiarra committed Oct 25, 2022
1 parent 9c59fdf commit e9b97bf
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,7 @@ public DestinationReadList listDestinationsForWorkspace(final WorkspaceIdRequest
throws ConfigNotFoundException, IOException, JsonValidationException {
final List<DestinationRead> reads = Lists.newArrayList();

for (final DestinationConnection dci : configRepository.listDestinationConnection()) {
if (!dci.getWorkspaceId().equals(workspaceIdRequestBody.getWorkspaceId())) {
continue;
}

if (dci.getTombstone()) {
continue;
}

for (final DestinationConnection dci : configRepository.listWorkspaceDestinationConnection(workspaceIdRequestBody.getWorkspaceId())) {
reads.add(buildDestinationRead(dci));
}

Expand Down

0 comments on commit e9b97bf

Please sign in to comment.