mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
db/AuthorManager.js: further conversion
also fixes a missing await calling `.createAuthor` in db/Pad.js
This commit is contained in:
parent
005c0afa97
commit
8108964472
2 changed files with 40 additions and 52 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue