Skip to content

Commit 66bf690

Browse files
committed
Cleanse Reviews for singlular submissions fetched from DB
1 parent 64b84b0 commit 66bf690

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/SubmissionService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function * getSubmission (authUser, submissionId) {
150150
yield helper.checkGetAccess(authUser, submissionRecord)
151151
}
152152

153+
submissionRecord.review = helper.cleanseReviews(submissionRecord.review, authUser)
154+
153155
// Return the retrieved submission
154156
logger.info(`getSubmission: returning data for submissionId: ${submissionId}`)
155157
return submissionRecord

0 commit comments

Comments
 (0)