mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Merge pull request #1984 from ldidry/fix/getRevisionChangeset-crash
Fix getRevisionChangeset API call making etherpad crash
This commit is contained in:
commit
44b1ac2b16
1 changed files with 6 additions and 1 deletions
|
@ -187,7 +187,12 @@ exports.getRevisionChangeset = function(padID, rev, callback)
|
||||||
//the client wants the latest changeset, lets return it to him
|
//the client wants the latest changeset, lets return it to him
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callback(null, {"changeset": pad.getRevisionChangeset(pad.getHeadRevisionNumber())});
|
pad.getRevisionChangeset(pad.getHeadRevisionNumber(), function(err, changeset)
|
||||||
|
{
|
||||||
|
if(ERR(err, callback)) return;
|
||||||
|
|
||||||
|
callback(null, changeset);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue