Fix getRevisionChangeset API call making etherpad crash

This commit is contained in:
Luc Didry 2013-11-07 22:49:20 +01:00
parent c9b80c6120
commit 4a9602cc57

View file

@ -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);
})
} }
}); });
} }