Skip to content

Commit

Permalink
fix: if file.document
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 4, 2022
1 parent 450aad4 commit f9d4e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CoCreateFileSystem {
organization_id
});

if (!file || !file.document[0])
if (!file || !file.document || !file.document[0])
return res.status(404).send(`${url} could not be found for ${organization_id} `);

file = file.document[0]
Expand Down

0 comments on commit f9d4e38

Please sign in to comment.