injected service use to handle the review related operations
injected logger used to handle the logging
request context [headers, body, params, query].
params.userId
is required201 Status Created
This handler is used to create one user review by org by applying the following steps in sequence:
Get the userId from params
Create review where targetId is userId (reviewService.createReview)
Recalculate user stats (userApi.updateUserReviewStats) If an error occurs, it is logged and the process continues
Return the created review
400 NBError Bad Request
500 NBError Internal Server Error
Generated using TypeDoc
Create user review by org handler