Skip to content

Commit

Permalink
Merge pull request #2 from janvanmansum/TYPOS
Browse files Browse the repository at this point in the history
Corrected typos
  • Loading branch information
qqmyers authored Feb 16, 2021
2 parents de551b1 + a1156e6 commit d91ebc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ private String validateDatasetFieldValues(List<DatasetField> fields) {
@Deprecated
public Response publishDataseUsingGetDeprecated( @PathParam("id") String id, @QueryParam("type") String type ) {
logger.info("publishDataseUsingGetDeprecated called on id " + id + ". Encourage use of POST rather than GET, which is deprecated.");
return publishDataset(id, type);
return publishDataset(id, type, false);
}

@POST
Expand Down Expand Up @@ -971,7 +971,7 @@ public Response publishDataset(@PathParam("id") String id, @QueryParam("type") S
}

Dataset ds = findDatasetOrDie(id);
if (mustbeIndexed) {
if (mustBeIndexed) {
if ((ds.getIndexTime() == null) || (ds.getIndexTime().compareTo(ds.getModificationTime()) >= 0)
|| ds.getPermissionIndexTime() == null
|| (ds.getPermissionIndexTime().compareTo(ds.getPermissionModificationTime()) >= 0)) {
Expand Down

0 comments on commit d91ebc4

Please sign in to comment.