db: await more database operations

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
webzwo0i 2021-07-04 16:30:30 +02:00 committed by Richard Hansen
parent e64462323b
commit 0040f5984e
3 changed files with 19 additions and 21 deletions

View file

@ -139,11 +139,11 @@ exports.getRevisionChangeset = async (padID, rev) => {
}
// get the changeset for this revision
return pad.getRevisionChangeset(rev);
return await pad.getRevisionChangeset(rev);
}
// the client wants the latest changeset, lets return it to him
return pad.getRevisionChangeset(head);
return await pad.getRevisionChangeset(head);
};
/**