Merge pull request #846 from jhollinger/master

Fix getLastEdited API method
pull/864/merge
Matthias Bartelmeß 2012-07-07 11:20:13 -07:00
commit 4ca01ba344
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) getPadSafe(padID, true, function(err, pad)
{ {
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
callback(null, {lastEdited: pad.getLastEdited()}); pad.getLastEdit(function(err, value) {
if(ERR(err, callback)) return;
callback(null, {lastEdited: value});
});
}); });
} }