Bugfix to getLastEdited API method, issue #845

pull/847/head
Jordan Hollinger 2012-07-07 13:22:27 -04:00
parent f95e2793d7
commit 6d5fe459f0
1 changed files with 4 additions and 1 deletions

View File

@ -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});
});
});
}