Skip to content

Commit 379f387

Browse files
committed
removed to requirement that the reviewer name has to be empty (now it's just filtering if hacker was created before cutoff)
1 parent 003db27 commit 379f387

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

middlewares/hacker.middleware.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,8 @@ async function assignReviewers(req, res, next) {
762762

763763
const hackerModel = require('../models/hacker.model');
764764

765-
// find all hackers without assigned reviewers and created before the cutoff date
765+
// find all hackers created before the cutoff date
766766
const hackers = await hackerModel.find({
767-
reviewerName: '',
768767
_id: { $lte: cutoffObjectId }
769768
}).select('_id');
770769

0 commit comments

Comments
 (0)