@xuda.io/drive_module 1.1.1095 → 1.1.1097

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 +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2352,6 +2352,7 @@ exports.update_drive_addons = async function (req, job_id) {
2352
2352
  const {
2353
2353
  drive_type,
2354
2354
  app_id,
2355
+ uid,
2355
2356
  ocr,
2356
2357
  image_ai,
2357
2358
  video_ai,
@@ -2361,9 +2362,12 @@ exports.update_drive_addons = async function (req, job_id) {
2361
2362
 
2362
2363
  var app_obj_ret = await db_module.get_app_obj(app_id);
2363
2364
  const app_obj = app_obj_ret.data;
2365
+ if (!app_obj.drive_addons) {
2366
+ app_obj.drive_addons = {};
2367
+ }
2364
2368
 
2365
- if (typeof enable_offline !== "undefined") {
2366
- app_obj.deploy_data.enable_offline = enable_offline;
2369
+ if (typeof app_id !== "undefined") {
2370
+ app_obj.drive_addons.ocr = ocr;
2367
2371
  }
2368
2372
  };
2369
2373
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1095",
3
+ "version": "1.1.1097",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {