Update Heroku stuff

This commit is contained in:
Jonathan Cremin 2014-12-23 00:50:45 +00:00
parent 699a7c3cd2
commit 8a650b781d
3 changed files with 8 additions and 6 deletions

View file

@ -10,7 +10,9 @@ module.exports = function(req, res, next) {
req.db.matches.find().sort({created_at:-1}).limit(6).toArray().then(function(docs){
var recents = [];
docs.forEach(function(doc) {
recents.push(doc.services[doc._id.split("$$")[0]]);
if (doc._id.indexOf("$$") > -1) {
recents.push(doc.services[doc._id.split("$$")[0]]);
}
});
Router.run(routes, req.url, function (Handler) {