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
Michael Murtaugh 2020-12-14 08:04:14 +01:00 committed by GitHub
parent a44debdcfe
commit 66e3f02ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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