mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 01:11:39 +00: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) {
|
for await (const projectId of rl) {
|
||||||
try {
|
try {
|
||||||
const project = await ProjectGetter.promises.getProject(projectId)
|
const project = await ProjectGetter.promises.getProject(projectId)
|
||||||
|
if (!project) {
|
||||||
|
throw new Errors.NotFoundError('project not found')
|
||||||
|
}
|
||||||
const {
|
const {
|
||||||
files,
|
files,
|
||||||
docs
|
docs
|
||||||
|
|
Loading…
Reference in a new issue