Commit 3098d825 authored by handolukats's avatar handolukats
Browse files

TEIS-1315 refactor

parent 70c21e50
......@@ -53,7 +53,7 @@ public class RiskAssessmentController extends TeisBaseController {
public RiskAssessmentPublicDto copy(@PathVariable UUID id, @RequestBody CopyRiskAssessmentDto dto,
@ApiIgnore RequestMetaDTO requestMetaDTO) {
CopyRiskAssessmentPublicRequest request = new CopyRiskAssessmentPublicRequest();
dto.getRiskAssessment().setId(id);
dto.setRiskAssessment(RiskAssessmentPublicDto.builder().id(id).build());
request.setPayload(dto, requestMetaDTO);
return service.copy(request);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment