Skip to content

Commit

Permalink
Bugfix to getLastEdited API method, issue ether#845
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollinger committed Jul 7, 2012
1 parent f95e279 commit 6d5fe45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node/db/API.js
Expand Up @@ -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});
});
});
}

Expand Down

0 comments on commit 6d5fe45

Please sign in to comment.