mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 22:49:53 +01:00
Bugfix to getLastEdited API method, issue #845
This commit is contained in:
parent
f95e2793d7
commit
bcc48214ea
1 changed files with 4 additions and 1 deletions
|
@ -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});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue