mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Handle missing projects properly in file-count script
GitOrigin-RevId: 5968fc3c6646a6e75b2b84440d59d9c0cbcead5e
This commit is contained in:
committed by
Copybot
parent
07cd6b257a
commit
ff38ea9533
@@ -11,6 +11,9 @@ async function countFiles() {
|
||||
for await (const projectId of rl) {
|
||||
try {
|
||||
const project = await ProjectGetter.promises.getProject(projectId)
|
||||
if (!project) {
|
||||
throw new Errors.NotFoundError('project not found')
|
||||
}
|
||||
const {
|
||||
files,
|
||||
docs
|
||||
|
||||
Reference in New Issue
Block a user