Skip to content

Commit

Permalink
Merge pull request #25 from apptreesoftware/REV-998
Browse files Browse the repository at this point in the history
added ResponseExceptionHandler to updateInspection method
  • Loading branch information
matthewtsmith authored May 5, 2017
2 parents 83f1341 + 5e1cc9a commit fec71c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/sdk/controllers/InspectionController.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public CompletionStage<Result> updateInspectionItem(String dataSetName) {
return getConfiguration(dataSource, request)
.thenCompose(inspectionConfiguration -> dataSetItemFromRequest(inspectionConfiguration.getInspectionServiceConfiguration(), request, false))
.thenCompose(dataSetItem -> dataSource.updateInspectionItem(dataSetItem,contextMap, authenticationInfo, parameters))
.thenApply(dataSet -> ok(dataSet.toJSON()));
.thenApply(dataSet -> ok(dataSet.toJSON()))
.exceptionally(ResponseExceptionHandler::handleException);
}

public CompletionStage<Result> searchInspectionItem(String dataSetName) {
Expand Down

0 comments on commit fec71c0

Please sign in to comment.