godprotocol 2.3.65 → 2.3.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.3.65",
3
+ "version": "2.3.66",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -155,6 +155,7 @@ class Services {
155
155
 
156
156
  version_db = async (ver) => {
157
157
  let version = await this.get_version(ver);
158
+
158
159
  if (!version) {
159
160
  let vers = Object.keys(this.versions);
160
161
 
@@ -170,7 +171,7 @@ class Services {
170
171
  return;
171
172
  }
172
173
 
173
- let db = await this.platform_db();
174
+ let db = await this.platform_db(version?.db_name);
174
175
 
175
176
  return db;
176
177
  };
@@ -488,6 +488,7 @@ const version_middleware = async (req, res, routers) => {
488
488
  result,
489
489
  headers: req.headers,
490
490
  version,
491
+ matched_route_name: name,
491
492
  route: payload.route_pattern || name,
492
493
  db: db.db,
493
494
  });