diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-06 11:48:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-06 11:48:08 -0400 |
| commit | abe12120374d07cf5f87192964a9d1c10741e475 (patch) | |
| tree | 48a5c09e51863fe1508e7404cec2a9340e29f686 /lib/bucky.js | |
| parent | 5b1461e7b4d32e96eaa8386b4b7ea96ec4b18d5a (diff) | |
header
Diffstat (limited to 'lib/bucky.js')
| -rw-r--r-- | lib/bucky.js | 8 |
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){ |
