Merge pull request #5984 from overleaf/em-unnecessarily-async-functions

Clean up unnecessarily async functions

GitOrigin-RevId: 59f0f0a76b4436f3b99a09b747670d443bac4582
This commit is contained in:
Eric Mc Sween
2021-12-06 10:27:12 -05:00
committed by Copybot
parent d27918bf40
commit b22df1dcba
13 changed files with 268 additions and 404 deletions
@@ -17,10 +17,9 @@ async function countFiles() {
if (!project) {
throw new Errors.NotFoundError('project not found')
}
const {
files,
docs,
} = await ProjectEntityHandler.promises.getAllEntitiesFromProject(project)
const { files, docs } = ProjectEntityHandler.getAllEntitiesFromProject(
project
)
console.error(
projectId,
files.length,