db/AuthorManager.js: further conversion

also fixes a missing await calling `.createAuthor` in db/Pad.js
This commit is contained in:
Ray Bellis 2019-01-28 15:36:36 +00:00
parent 005c0afa97
commit 8108964472
2 changed files with 40 additions and 52 deletions

View file

@ -453,7 +453,7 @@ exports.saveRevision = async function(padID, rev)
rev = pad.getHeadRevisionNumber();
}
let author = authorManager.createAuthor('API');
let author = await authorManager.createAuthor('API');
pad.addSavedRevision(rev, author.authorID, 'Saved through API call');
}