Merge pull request #2787 from overleaf/spd-count-files

Update file-count script for projects with no deleted-files array

GitOrigin-RevId: 63b3af4f3c419ed032a6de8a90c680e1446ee422
This commit is contained in:
Simon Detheridge 2020-04-29 10:48:17 +01:00 committed by Copybot
parent 17fe8e5590
commit 07cd6b257a

View file

@ -18,9 +18,9 @@ async function countFiles() {
console.error(
projectId,
files.length,
project.deletedFiles.length,
(project.deletedFiles && project.deletedFiles.length) || 0,
docs.length,
project.deletedDocs.length
(project.deletedDocs && project.deletedDocs.length) || 0
)
} catch (err) {
if (err instanceof Errors.NotFoundError) {