diff --git a/web/src/main/kotlin/br/all/question/controller/ExtractionQuestionController.kt b/web/src/main/kotlin/br/all/question/controller/ExtractionQuestionController.kt index 72eb9490e..288d55bc6 100644 --- a/web/src/main/kotlin/br/all/question/controller/ExtractionQuestionController.kt +++ b/web/src/main/kotlin/br/all/question/controller/ExtractionQuestionController.kt @@ -362,7 +362,7 @@ class ExtractionQuestionController( ): ResponseEntity<*> { val presenter = RestfulUpdateExtractionQuestionPresenter(linksFactory) val userId = authenticationInfoService.getAuthenticatedUserId() - val requestModel = request.toUpdateRequestModel(userId, systematicStudyId, questionId) + val requestModel = request.toUpdateRequestModel(userId, systematicStudyId, questionId, questionContext) updateQuestionService.update(presenter, requestModel) return presenter.responseEntity ?: ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR) diff --git a/web/src/main/kotlin/br/all/question/controller/RiskOfBiasQuestionController.kt b/web/src/main/kotlin/br/all/question/controller/RiskOfBiasQuestionController.kt index da07f7ceb..99fc72aa7 100644 --- a/web/src/main/kotlin/br/all/question/controller/RiskOfBiasQuestionController.kt +++ b/web/src/main/kotlin/br/all/question/controller/RiskOfBiasQuestionController.kt @@ -358,7 +358,7 @@ class RiskOfBiasQuestionController( ): ResponseEntity<*> { val presenter = RestfulUpdateRoBQuestionPresenter(linksFactory) val userId = authenticationInfoService.getAuthenticatedUserId() - val requestModel = request.toUpdateRequestModel(userId, systematicStudyId, questionId) + val requestModel = request.toUpdateRequestModel(userId, systematicStudyId, questionId, questionContext) updateQuestionService.update(presenter, requestModel) return presenter.responseEntity ?: ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR) diff --git a/web/src/main/kotlin/br/all/question/requests/PutRequest.kt b/web/src/main/kotlin/br/all/question/requests/PutRequest.kt index e78cbb670..e45765786 100644 --- a/web/src/main/kotlin/br/all/question/requests/PutRequest.kt +++ b/web/src/main/kotlin/br/all/question/requests/PutRequest.kt @@ -14,9 +14,8 @@ data class PutRequest( val higher: Int? = null, val lower: Int? = null, val options: List? = null, - val context: String ) { - fun toUpdateRequestModel(userId: UUID, systematicStudyId: UUID, questionId: UUID) = + fun toUpdateRequestModel(userId: UUID, systematicStudyId: UUID, questionId: UUID, context: String) = UpdateQuestionService.RequestModel( userId, systematicStudyId,