Skip to content

Commit

Permalink
properly pull one specific assignment based on date
Browse files Browse the repository at this point in the history
  • Loading branch information
SSBinks committed Jan 13, 2017
1 parent 9f96ff5 commit d9b4191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ router.route('/assign')

router.route('/assign/:due_date')
.get(function(req, res) {
Assignment.find(req.params.due_date, function (err, assignment){
Assignment.find({dueDate: req.params.due_date}, function (err, assignment){
if(err)
res.send(err);
res.json(assignment);
Expand Down

0 comments on commit d9b4191

Please sign in to comment.