Skip to content

Commit

Permalink
Fix non subscribing call to updateQuestionAndAssessment method. (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c authored Aug 28, 2023
1 parent 5db2ec3 commit 488226a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,13 @@ private Mono<XMessage> decodeXMessage(XMessage xMessage, ServiceResponse respons
if (isEndOfForm(response)) {
return appendNewResponse(formID, xMessage, response)
.flatMap(resp -> replaceUserState(formID, xMessage, response))
.flatMap(resp -> Mono.just(updateQuestionAndAssessment))
.flatMap(resp -> Mono.defer(() -> Mono.fromCallable(updateQuestionAndAssessment::subscribe)))
.flatMap(resp -> Mono.defer(() -> Mono.fromCallable(() -> new UploadService().submit(response.currentResponseState, restTemplate, customRestTemplate))))
.flatMap(resp -> Mono.just(getClone(nextMessage)));
} else {
return appendNewResponse(formID, xMessage, response)
.flatMap(resp -> replaceUserState(formID, xMessage, response))
.flatMap(resp -> Mono.just(updateQuestionAndAssessment))
.flatMap(resp -> Mono.defer(() -> Mono.fromCallable(updateQuestionAndAssessment::subscribe)))
.flatMap(resp -> Mono.just(getClone(nextMessage)));
}
}
Expand Down

0 comments on commit 488226a

Please sign in to comment.