Skip to content

Commit

Permalink
fix: return if organization.error
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 15, 2024
1 parent e46947c commit b6425eb
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 @@ -27,7 +27,7 @@ class CoCreateFileSystem {

async send(req, res, crud, organization, valideUrl) {
try {
if (!organization) {
if (!organization || organization.error) {
let hostNotFound = await getDefaultFile('/hostNotFound.html')
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html' })
}
Expand Down

0 comments on commit b6425eb

Please sign in to comment.