Skip to content

Commit 1819093

Browse files
committed
added event filter for query
1 parent de7ed51 commit 1819093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exports.createSubmission = function (req, res) {
8383
exports.getSubmission = function (req, res) {
8484
var handle = req.user.id;
8585

86-
Submission.find({})
86+
Submission.find({event: process.env.EVENT})
8787
.sort({ totalReviews: -1 })
8888
.exec(function (err, submissions) {
8989
if (!err) {

0 commit comments

Comments
 (0)