From abe12120374d07cf5f87192964a9d1c10741e475 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 6 Sep 2015 11:48:08 -0400 Subject: header --- lib/bucky.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/bucky.js') diff --git a/lib/bucky.js b/lib/bucky.js index 2488c31..ef6fbbc 100644 --- a/lib/bucky.js +++ b/lib/bucky.js @@ -39,7 +39,13 @@ var bucky = module.exports = { next() }) }, - + ensureLastlog: function (req, res, next){ + db.getLastlog(6).then(function(lastlog){ + res.lastlog = lastlog + next() + }) + }, + /* DETAILS */ ensureThread: function (req, res, next){ -- cgit v1.2.3-70-g09d2