@xuda.io/drive_module 1.1.1101 → 1.1.1103

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 +22 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2368,25 +2368,33 @@ exports.update_drive_addons = async function (req, job_id) {
2368
2368
 
2369
2369
  let drive_addons = {};
2370
2370
 
2371
- if (typeof ocr !== "undefined") {
2372
- drive_addons.ocr = ocr;
2371
+ if (drive_type === "workspace" || drive_type === "studio") {
2372
+ const master_id = await _common.get_project_app_id(app_id, true);
2373
+ var app_obj_ret = await db_module.get_app_obj(master_id);
2374
+ const app_obj = app_obj_ret.data;
2373
2375
  }
2374
2376
 
2375
- if (typeof image_convertor !== "undefined") {
2376
- drive_addons.image_convertor = image_convertor;
2377
- }
2377
+ const set_drive_addons = function () {
2378
+ if (typeof ocr !== "undefined") {
2379
+ drive_addons.ocr = ocr;
2380
+ }
2378
2381
 
2379
- if (typeof video_ai !== "undefined") {
2380
- drive_addons.video_ai = video_ai;
2381
- }
2382
+ if (typeof image_convertor !== "undefined") {
2383
+ drive_addons.image_convertor = image_convertor;
2384
+ }
2382
2385
 
2383
- if (typeof ai_component_generator !== "undefined") {
2384
- drive_addons.ai_component_generator = ocr;
2385
- }
2386
+ if (typeof video_ai !== "undefined") {
2387
+ drive_addons.video_ai = video_ai;
2388
+ }
2386
2389
 
2387
- if (typeof edit_image !== "undefined") {
2388
- drive_addons.edit_image = edit_image;
2389
- }
2390
+ if (typeof ai_component_generator !== "undefined") {
2391
+ drive_addons.ai_component_generator = ocr;
2392
+ }
2393
+
2394
+ if (typeof edit_image !== "undefined") {
2395
+ drive_addons.edit_image = edit_image;
2396
+ }
2397
+ };
2390
2398
  };
2391
2399
 
2392
2400
  setTimeout(async function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1101",
3
+ "version": "1.1.1103",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {