mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
Merge pull request #5984 from overleaf/em-unnecessarily-async-functions
Clean up unnecessarily async functions GitOrigin-RevId: 59f0f0a76b4436f3b99a09b747670d443bac4582
This commit is contained in:
@@ -301,7 +301,7 @@ async function moveEntity(projectId, entityId, destFolderId, entityType) {
|
||||
const {
|
||||
docs: oldDocs,
|
||||
files: oldFiles,
|
||||
} = await ProjectEntityHandler.promises.getAllEntitiesFromProject(project)
|
||||
} = ProjectEntityHandler.getAllEntitiesFromProject(project)
|
||||
// For safety, insert the entity in the destination
|
||||
// location first, and then remove the original. If
|
||||
// there is an error the entity may appear twice. This
|
||||
@@ -331,7 +331,7 @@ async function moveEntity(projectId, entityId, destFolderId, entityType) {
|
||||
const {
|
||||
docs: newDocs,
|
||||
files: newFiles,
|
||||
} = await ProjectEntityHandler.promises.getAllEntitiesFromProject(newProject)
|
||||
} = ProjectEntityHandler.getAllEntitiesFromProject(newProject)
|
||||
const startPath = entityPath.fileSystem
|
||||
const endPath = result.path.fileSystem
|
||||
const changes = {
|
||||
@@ -421,7 +421,7 @@ async function renameEntity(
|
||||
const {
|
||||
docs: oldDocs,
|
||||
files: oldFiles,
|
||||
} = await ProjectEntityHandler.promises.getAllEntitiesFromProject(project)
|
||||
} = ProjectEntityHandler.getAllEntitiesFromProject(project)
|
||||
|
||||
// we need to increment the project version number for any structure change
|
||||
const newProject = await Project.findOneAndUpdate(
|
||||
@@ -433,7 +433,7 @@ async function renameEntity(
|
||||
const {
|
||||
docs: newDocs,
|
||||
files: newFiles,
|
||||
} = await ProjectEntityHandler.promises.getAllEntitiesFromProject(newProject)
|
||||
} = ProjectEntityHandler.getAllEntitiesFromProject(newProject)
|
||||
return {
|
||||
project,
|
||||
startPath,
|
||||
|
||||
Reference in New Issue
Block a user