Skip to content

Commit 5418c06

Browse files
committed
fix: removed host.files as handled from crud-server
1 parent 280a178 commit 5418c06

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,6 @@ class CoCreateFileSystem {
8989
organization_id
9090
}
9191

92-
if (organization.host) {
93-
let host = organization.host
94-
for (let i = 0; i < host.length; i++) {
95-
if (host[i].name === hostname) {
96-
if (host[i].storage)
97-
data.storage = host[i].storage
98-
if (host[i].database)
99-
data.database = host[i].database
100-
if (host[i].array)
101-
data.array = host[i].array
102-
if (host[i].files)
103-
data = { ...data, ...host[i].files }
104-
break
105-
}
106-
}
107-
}
108-
10992
let file
11093
if (pathname.startsWith('/dist') || pathname.startsWith('/admin') || ['/403.html', '/404.html', '/offline.html', '/manifest.webmanifest', '/service-worker.js'].includes(pathname))
11194
file = await getDefaultFile(pathname)

0 commit comments

Comments
 (0)