Skip to content

Commit

Permalink
Merge pull request #846 from jhollinger/master
Browse files Browse the repository at this point in the history
Fix getLastEdited API method
  • Loading branch information
fourplusone committed Jul 7, 2012
2 parents f95e279 + bcc4821 commit 4ca01ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node/db/API.js
Original file line number Diff line number Diff line change
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 4ca01ba

Please sign in to comment.