Skip to content

Commit

Permalink
Fix #225
Browse files Browse the repository at this point in the history
  • Loading branch information
jheretic committed Mar 8, 2021
1 parent b24033a commit f5aecfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/controllers/rapidReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export default function controller(rapidReviews, preprints, thisUser) {
try {
if (pid) {
preprint = await preprints.findOneByUuidOrHandle(pid);
data = await rapidReviews.find({ preprint: preprint });
data = await rapidReviews.find({ preprint: preprint }, ['preprint']);
} else if (id) {
data = await rapidReviews.findOne({ uuid: id });
data = await rapidReviews.findOne({ uuid: id }, ['preprint']);
} else {
data = await rapidReviews.findAll();
data = await rapidReviews.findAll(['preprint']);
}
} catch (error) {
log.error('HTTP 400 Error: ', error);
Expand Down

0 comments on commit f5aecfd

Please sign in to comment.