Skip to content

Commit

Permalink
add missing "Command" suffix #10519
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Nov 5, 2024
1 parent b6fb92b commit 399fe8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -5264,7 +5264,7 @@ public Response updateDatasetTypeLinksWithMetadataBlocks(@Context ContainerReque
}
}
try {
execCommand(new UpdateDatasetTypeLinksToMetadataBlocks(createDataverseRequest(getRequestUser(crc)), datasetType, metadataBlocksToSave));
execCommand(new UpdateDatasetTypeLinksToMetadataBlocksCommand(createDataverseRequest(getRequestUser(crc)), datasetType, metadataBlocksToSave));
return ok(Json.createObjectBuilder()
.add("linkedMetadataBlocks", Json.createObjectBuilder()
.add("before", datasetTypesBefore)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
import java.util.List;

@RequiredPermissions({})
public class UpdateDatasetTypeLinksToMetadataBlocks extends AbstractVoidCommand {
public class UpdateDatasetTypeLinksToMetadataBlocksCommand extends AbstractVoidCommand {

final DatasetType datasetType;
List<MetadataBlock> metadataBlocks;

public UpdateDatasetTypeLinksToMetadataBlocks(DataverseRequest dataverseRequest, DatasetType datasetType, List<MetadataBlock> metadataBlocks) {
public UpdateDatasetTypeLinksToMetadataBlocksCommand(DataverseRequest dataverseRequest, DatasetType datasetType, List<MetadataBlock> metadataBlocks) {
super(dataverseRequest, (DvObject) null);
this.datasetType = datasetType;
this.metadataBlocks = metadataBlocks;
Expand Down

0 comments on commit 399fe8d

Please sign in to comment.