mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #7578 from overleaf/em-fix-filetrees
Fix typo in script for bad filetrees GitOrigin-RevId: 57394e5533f98a890223a0af6f4b389a82e60d84
This commit is contained in:
parent
20bf575af0
commit
f561650b62
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ async function main() {
|
|||
modifiedCount = await fixRootFolder(projectId)
|
||||
} else if (endsWithNumber(mongoPath)) {
|
||||
modifiedCount = await removeNullFolders(projectId, parentPath(mongoPath))
|
||||
} else if (['docs', 'folders', 'fileTrees'].includes(lastPathSegment)) {
|
||||
} else if (['docs', 'folders', 'fileRefs'].includes(lastPathSegment)) {
|
||||
modifiedCount = await ensureElementIsArray(projectId, mongoPath)
|
||||
} else {
|
||||
console.error(`Unexpected mongo path: ${mongoPath}`)
|
||||
|
|
Loading…
Reference in a new issue