@cocreate/socket-server 1.13.1 → 1.13.2
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 +8 -0
- package/CoCreate.config.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.13.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.1...v1.13.2) (2023-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* renamed db to storage ([4766428](https://github.com/CoCreate-app/CoCreate-socket-server/commit/4766428c38e542282c301c457420dd3405a78206))
|
|
7
|
+
* renamed hosts to host. the value can be a string or an array of strings ([3c60a40](https://github.com/CoCreate-app/CoCreate-socket-server/commit/3c60a40d48dfd9b3343dfa738bb290cc47fb4766))
|
|
8
|
+
|
|
1
9
|
## [1.13.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.0...v1.13.1) (2023-06-10)
|
|
2
10
|
|
|
3
11
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -134,7 +134,7 @@ class SocketServer extends EventEmitter {
|
|
|
134
134
|
if (this.authorize) {
|
|
135
135
|
data.host = this.getHost(req)
|
|
136
136
|
const permission = await this.authorize.check(action, data, user_id)
|
|
137
|
-
if (permission.
|
|
137
|
+
if (permission.storage === false) {
|
|
138
138
|
data.database = process.env.organization_id
|
|
139
139
|
data.organization_id = process.env.organization_id
|
|
140
140
|
|