@xuda.io/drive_module 1.1.1105 → 1.1.1106

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 +4 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2382,20 +2382,15 @@ exports.update_drive_addons = async function (req, job_id) {
2382
2382
  }
2383
2383
  };
2384
2384
 
2385
- const master_id = await _common.get_project_app_id(app_id, true);
2386
- var app_obj_ret = await db_module.get_app_obj(master_id);
2387
- const app_obj = app_obj_ret.data;
2388
- if (!app_obj.drive_addons) {
2389
- app_obj.drive_addons = {};
2390
- }
2391
-
2392
2385
  let drive_addons = {};
2393
2386
 
2394
2387
  if (drive_type === "workspace" || drive_type === "studio") {
2395
2388
  const master_id = await _common.get_project_app_id(app_id, true);
2396
2389
  var app_obj_ret = await db_module.get_app_obj(master_id);
2397
- const app_obj = app_obj_ret.data;
2398
- set_drive_addons(app_obj.drive_addons);
2390
+ if (app_obj_ret.data.drive_addons) {
2391
+ drive_addons = app_obj_ret.data.drive_addons;
2392
+ }
2393
+ set_drive_addons();
2399
2394
  }
2400
2395
  };
2401
2396
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1105",
3
+ "version": "1.1.1106",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {