@cocreate/file-server 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/index.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.0.10](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.9...v1.0.10) (2022-12-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* masterOrg replaced with process.env.organization_id ([7583473](https://github.com/CoCreate-app/CoCreate-file-server/commit/75834733dcdd957433f34a2ca1ca33faf766be4a))
|
|
7
|
+
|
|
8
|
+
## [1.0.9](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.8...v1.0.9) (2022-12-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* send html and organization_id to render.HTML ([a11390b](https://github.com/CoCreate-app/CoCreate-file-server/commit/a11390be2c40cdead9eaeab253c11477cafe21f7))
|
|
14
|
+
|
|
1
15
|
## [1.0.8](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.7...v1.0.8) (2022-12-04)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -26,13 +26,13 @@ class CoCreateFileSystem {
|
|
|
26
26
|
collection: 'organizations',
|
|
27
27
|
filter: {
|
|
28
28
|
query: [
|
|
29
|
-
{name: "domains", value: hostname, operator: "$
|
|
29
|
+
{name: "domains", value: [hostname], operator: "$in"}
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
})
|
|
34
34
|
if (!organization || !organization.document || !organization.document[0])
|
|
35
|
-
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' +
|
|
35
|
+
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' + process.env.organization_id);
|
|
36
36
|
|
|
37
37
|
organization_id = organization.document[0]._id
|
|
38
38
|
}
|
|
@@ -100,7 +100,7 @@ class CoCreateFileSystem {
|
|
|
100
100
|
}
|
|
101
101
|
else if (content_type === 'text/html') {
|
|
102
102
|
try {
|
|
103
|
-
let fullHtml = await render.
|
|
103
|
+
let fullHtml = await render.HTML(src, organization_id);
|
|
104
104
|
res.type(content_type);
|
|
105
105
|
res.send(fullHtml);
|
|
106
106
|
}
|