Skip to content

Commit

Permalink
2024-10-21 - feedback - external reviewer - server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
Luch76 committed Oct 21, 2024
1 parent 1f5a7ed commit 5c1c584
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public FeedbackRequestController(FeedbackRequestServices feedbackReqServices) {
@RequiredPermission(Permission.CAN_CREATE_FEEDBACK_REQUEST)
@Post
public HttpResponse<FeedbackRequestResponseDTO> save(@Body @Valid @NotNull FeedbackRequestCreateDTO requestBody) {
FeedbackRequest savedFeedbackRequest = feedbackReqServices.save(fromDTO(requestBody));
FeedbackRequest feedbackRequest = fromDTO(requestBody);
FeedbackRequest savedFeedbackRequest = feedbackReqServices.save(feedbackRequest);
return HttpResponse.created(fromEntity(savedFeedbackRequest))
.headers(headers -> headers.location(URI.create("/feedback_request/" + savedFeedbackRequest.getId())));
}
Expand Down

0 comments on commit 5c1c584

Please sign in to comment.