@xuda.io/drive_module 1.1.581 → 1.1.583

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -53,8 +53,11 @@ const fs = require("fs");
53
53
  req.drive_type = type;
54
54
 
55
55
  if (type === "workspace") {
56
- const deploy_module = require(`${module_path}/deploy_module`);
57
- deploy_module.reset_deployment_cache();
56
+ const { data: app_obj } = await db_module.get_app_obj(app_id);
57
+ if (app_obj.app_type === "datacenter") {
58
+ const deploy_module = require(`${module_path}/deploy_module`);
59
+ deploy_module.reset_deployment_cache(app_obj._id);
60
+ }
58
61
  }
59
62
 
60
63
  return await module.exports[method](req, job_id, headers, file_obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.581",
3
+ "version": "1.1.583",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {