summaryrefslogtreecommitdiff
path: root/lib/bucky.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-06 11:48:08 -0400
committerJules Laplace <jules@okfoc.us>2015-09-06 11:48:08 -0400
commitabe12120374d07cf5f87192964a9d1c10741e475 (patch)
tree48a5c09e51863fe1508e7404cec2a9340e29f686 /lib/bucky.js
parent5b1461e7b4d32e96eaa8386b4b7ea96ec4b18d5a (diff)
header
Diffstat (limited to 'lib/bucky.js')
-rw-r--r--lib/bucky.js8
1 files changed, 7 insertions, 1 deletions
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){