Skip to content

Commit

Permalink
extra L in SUCCESSFUL (#10623)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Aug 21, 2024
1 parent 45fb938 commit b3f79fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ private ApiConstants() {

// addFiles call
public static final String API_ADD_FILES_COUNT_PROCESSED = "Total number of files";
public static final String API_ADD_FILES_COUNT_SUCCESSFULL = "Number of files successfully added";
public static final String API_ADD_FILES_COUNT_SUCCESSFUL = "Number of files successfully added";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@ public Response addFiles(String jsonData, Dataset dataset, User authUser) {

JsonObjectBuilder result = Json.createObjectBuilder()
.add(ApiConstants.API_ADD_FILES_COUNT_PROCESSED, totalNumberofFiles)
.add(ApiConstants.API_ADD_FILES_COUNT_SUCCESSFULL, successNumberofFiles);
.add(ApiConstants.API_ADD_FILES_COUNT_SUCCESSFUL, successNumberofFiles);


return Response.ok().entity(Json.createObjectBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ private void processUploadedFiles(JsonArray filesJsonArray, Dataset dataset, Aut
if (addFilesJsonObject.containsKey("data") && addFilesJsonObject.getJsonObject("data").containsKey("Result")) {

//Integer countAddFilesTotal = addFilesJsonObject.getJsonObject("data").getJsonObject("Result").getInt(ApiConstants.API_ADD_FILES_COUNT_PROCESSED, -1);
countAddFilesSuccess = addFilesJsonObject.getJsonObject("data").getJsonObject("Result").getInt(ApiConstants.API_ADD_FILES_COUNT_SUCCESSFULL, -1);
countAddFilesSuccess = addFilesJsonObject.getJsonObject("data").getJsonObject("Result").getInt(ApiConstants.API_ADD_FILES_COUNT_SUCCESSFUL, -1);
myLogger.info("Files successfully added by addFiles(): " + countAddFilesSuccess);

} else {
Expand Down

0 comments on commit b3f79fe

Please sign in to comment.