Skip to content

Commit

Permalink
Bugfix to getLastEdited API method, issue #845
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollinger committed Jul 7, 2012
1 parent f95e279 commit bcc4821
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

1 comment on commit bcc4821

@JohnMcLear
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use pull requests :)

Please sign in to comment.