From 6d5fe459f007325cdcf1b6167055f624db523e16 Mon Sep 17 00:00:00 2001 From: Jordan Hollinger Date: Sat, 7 Jul 2012 13:22:27 -0400 Subject: [PATCH] Bugfix to getLastEdited API method, issue #845 --- src/node/db/API.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index 661b78595..68a57d7d0 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -298,7 +298,10 @@ exports.getLastEdited = function(padID, callback) getPadSafe(padID, true, function(err, pad) { if(ERR(err, callback)) return; - callback(null, {lastEdited: pad.getLastEdited()}); + pad.getLastEdit(function(err, value) { + if(ERR(err, callback)) return; + callback(null, {lastEdited: value}); + }); }); }