editor/bugfix: missing await in createClearStartAtext (#4561)
Missing await in call to this._pad.getInternalRevisionAText(rev). Function returns a promise. This bug breaks the createDiffHTML API call (how I discovered it).pull/4566/head
parent
a44debdcfe
commit
66e3f02ed2
|
@ -90,7 +90,7 @@ PadDiff.prototype._createClearAuthorship = async function (rev) {
|
|||
|
||||
PadDiff.prototype._createClearStartAtext = async function (rev) {
|
||||
// get the atext of this revision
|
||||
const atext = this._pad.getInternalRevisionAText(rev);
|
||||
const atext = await this._pad.getInternalRevisionAText(rev);
|
||||
|
||||
// create the clearAuthorship changeset
|
||||
const changeset = await this._createClearAuthorship(rev);
|
||||
|
|
Loading…
Reference in New Issue