@nocobase/server 2.3.0-beta.24 → 2.3.0-beta.26
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/lib/main-data-source.js +11 -7
- package/package.json +17 -17
package/lib/main-data-source.js
CHANGED
|
@@ -116,12 +116,10 @@ const _MainDataSource = class _MainDataSource extends import_data_source_manager
|
|
|
116
116
|
...filter
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const collections = loadedCollections.filter(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
);
|
|
119
|
+
const collections = loadedCollections.filter((collection) => {
|
|
120
|
+
var _a;
|
|
121
|
+
return ((_a = collection.options) == null ? void 0 : _a.from) !== "db2cm";
|
|
122
|
+
});
|
|
125
123
|
const loadedData = {};
|
|
126
124
|
for (const collection of collections) {
|
|
127
125
|
const c = db.getCollection(collection.name);
|
|
@@ -157,7 +155,13 @@ const _MainDataSource = class _MainDataSource extends import_data_source_manager
|
|
|
157
155
|
} catch (err) {
|
|
158
156
|
ctx.log.error(err);
|
|
159
157
|
}
|
|
160
|
-
const toLoadCollections =
|
|
158
|
+
const toLoadCollections = collections.flatMap((collection) => {
|
|
159
|
+
const loaded = loadedCollections[collection.tableName];
|
|
160
|
+
return this.mergeWithLoadedCollections(
|
|
161
|
+
[collection],
|
|
162
|
+
(loaded == null ? void 0 : loaded.from) === "dbsync" ? { [collection.name]: loaded } : loadedCollections
|
|
163
|
+
);
|
|
164
|
+
});
|
|
161
165
|
const currentSchema = process.env.COLLECTION_MANAGER_SCHEMA || db.options.schema || "public";
|
|
162
166
|
for (const values of toLoadCollections) {
|
|
163
167
|
if (values.schema === currentSchema) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.26",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "2.3.0-beta.
|
|
14
|
-
"@nocobase/actions": "2.3.0-beta.
|
|
15
|
-
"@nocobase/ai": "2.3.0-beta.
|
|
16
|
-
"@nocobase/auth": "2.3.0-beta.
|
|
17
|
-
"@nocobase/cache": "2.3.0-beta.
|
|
18
|
-
"@nocobase/data-source-manager": "2.3.0-beta.
|
|
19
|
-
"@nocobase/database": "2.3.0-beta.
|
|
20
|
-
"@nocobase/evaluators": "2.3.0-beta.
|
|
21
|
-
"@nocobase/lock-manager": "2.3.0-beta.
|
|
22
|
-
"@nocobase/logger": "2.3.0-beta.
|
|
23
|
-
"@nocobase/resourcer": "2.3.0-beta.
|
|
24
|
-
"@nocobase/sdk": "2.3.0-beta.
|
|
25
|
-
"@nocobase/snowflake-id": "2.3.0-beta.
|
|
26
|
-
"@nocobase/telemetry": "2.3.0-beta.
|
|
27
|
-
"@nocobase/utils": "2.3.0-beta.
|
|
13
|
+
"@nocobase/acl": "2.3.0-beta.26",
|
|
14
|
+
"@nocobase/actions": "2.3.0-beta.26",
|
|
15
|
+
"@nocobase/ai": "2.3.0-beta.26",
|
|
16
|
+
"@nocobase/auth": "2.3.0-beta.26",
|
|
17
|
+
"@nocobase/cache": "2.3.0-beta.26",
|
|
18
|
+
"@nocobase/data-source-manager": "2.3.0-beta.26",
|
|
19
|
+
"@nocobase/database": "2.3.0-beta.26",
|
|
20
|
+
"@nocobase/evaluators": "2.3.0-beta.26",
|
|
21
|
+
"@nocobase/lock-manager": "2.3.0-beta.26",
|
|
22
|
+
"@nocobase/logger": "2.3.0-beta.26",
|
|
23
|
+
"@nocobase/resourcer": "2.3.0-beta.26",
|
|
24
|
+
"@nocobase/sdk": "2.3.0-beta.26",
|
|
25
|
+
"@nocobase/snowflake-id": "2.3.0-beta.26",
|
|
26
|
+
"@nocobase/telemetry": "2.3.0-beta.26",
|
|
27
|
+
"@nocobase/utils": "2.3.0-beta.26",
|
|
28
28
|
"@types/ini": "^1.3.31",
|
|
29
29
|
"@types/koa-send": "^4.1.3",
|
|
30
30
|
"@types/multer": "^1.4.12",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"@types/serve-handler": "^6.1.1",
|
|
61
61
|
"@types/ws": "^8.5.5"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "570a0c9e634f8a91e58d1aae814dc288799e631a"
|
|
64
64
|
}
|