Merge pull request #18289 from overleaf/ac-ar-eslint-return-await

Add ESLint rule @typescript-eslint/return-await to backend services

GitOrigin-RevId: 75e3e32597827fcc852e69d479515fc72e8f45e4
This commit is contained in:
Andrew Rumble
2024-05-27 10:22:49 +00:00
committed by Copybot
parent 84ebca6742
commit 83a628c355
43 changed files with 1180 additions and 411 deletions
@@ -155,7 +155,7 @@ class LazyStringFileData extends FileData {
}
const eager = await this.toEager(blobStore)
this.operations.length = 0
return eager.store(blobStore)
return await eager.store(blobStore)
}
}
@@ -25,6 +25,7 @@ class History {
assert.maybe.array.of.instance(changes, Change, 'bad changes')
this.snapshot = snapshot
/** @type {Array<Change>} */
this.changes = changes || []
}
@@ -113,6 +114,9 @@ class History {
async store(blobStore, concurrency) {
assert.maybe.number(concurrency, 'bad concurrency')
/**
* @param {Change} change
*/
async function storeChange(change) {
return await change.store(blobStore, concurrency)
}