Skip to content

Commit f2ff42d

Browse files
committed
fix: Add path and pathname
1 parent 7063925 commit f2ff42d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CoCreate.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ module.exports = {
88
"object": {
99
"_id": "60145dc49f64ba1680b86693",
1010
"name": "index.html",
11-
"path": "/docs/file-server/index.html",
11+
"path": "/docs/file-server",
12+
"pathname": "/docs/file-server/index.html",
1213
"src": "{{./docs/index.html}}",
1314
"host": [
1415
"cocreate.app",
1516
"general.cocreate.app"
1617
],
17-
"directory": "/docs/file-server",
18+
"directory": "file-server",
1819
"content-type": "text/html",
19-
"public": "true",
20-
"website_id": "5ffbceb7f11d2d00103c4535"
20+
"public": "true"
2121
}
2222
}
2323
]

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class CoCreateFileSystem {
9191
$filter: {
9292
query: [
9393
{ key: "host", value: [hostname, '*'], operator: "$in" },
94-
{ key: "path", value: pathname, operator: "$eq" }
94+
{ key: "pathname", value: pathname, operator: "$eq" }
9595
],
9696
limit: 1
9797
},

0 commit comments

Comments
 (0)