@cocreate/crud-server 1.34.5 → 1.34.7
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 +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.34.7](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.34.6...v1.34.7) (2024-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed searchData ([e47f40f](https://github.com/CoCreate-app/CoCreate-crud-server/commit/e47f40f5ca0a30b854a26e2a2e180678d2cd56d5))
|
|
7
|
+
|
|
8
|
+
## [1.34.6](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.34.5...v1.34.6) (2024-02-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* handle error !data.organization_id ([c2b7e7c](https://github.com/CoCreate-app/CoCreate-crud-server/commit/c2b7e7c81246c4fc7f639199c834a8df9d473033))
|
|
14
|
+
|
|
1
15
|
## [1.34.5](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.34.4...v1.34.5) (2024-02-13)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const { ObjectId,
|
|
3
|
+
const { ObjectId, sortData } = require("@cocreate/utils");
|
|
4
4
|
const Config = require('@cocreate/config')
|
|
5
5
|
|
|
6
6
|
class CoCreateCrudServer {
|
|
@@ -60,8 +60,10 @@ class CoCreateCrudServer {
|
|
|
60
60
|
async send(data) {
|
|
61
61
|
return new Promise(async (resolve) => {
|
|
62
62
|
try {
|
|
63
|
-
if (!data.organization_id || !this.config)
|
|
64
|
-
|
|
63
|
+
if (!data.organization_id || !this.config) {
|
|
64
|
+
data.error = 'Missing an organization_id'
|
|
65
|
+
return resolve(data)
|
|
66
|
+
}
|
|
65
67
|
|
|
66
68
|
let organization = await this.getOrganization(data)
|
|
67
69
|
|