From f561650b6217f0dc8e5040415477361a646d970f Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 21 Apr 2022 07:59:01 -0400 Subject: [PATCH] Merge pull request #7578 from overleaf/em-fix-filetrees Fix typo in script for bad filetrees GitOrigin-RevId: 57394e5533f98a890223a0af6f4b389a82e60d84 --- services/web/scripts/fix_malformed_filetree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/scripts/fix_malformed_filetree.js b/services/web/scripts/fix_malformed_filetree.js index e46f8e2402..ff2dd8da79 100644 --- a/services/web/scripts/fix_malformed_filetree.js +++ b/services/web/scripts/fix_malformed_filetree.js @@ -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}`)