mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Handle missing projects properly in file-count script
GitOrigin-RevId: 5968fc3c6646a6e75b2b84440d59d9c0cbcead5e
This commit is contained in:
parent
07cd6b257a
commit
ff38ea9533
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue