@xuda.io/drive_module 1.1.1100 → 1.1.1102
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/index.js +11 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2368,24 +2368,30 @@ exports.update_drive_addons = async function (req, job_id) {
|
|
|
2368
2368
|
|
|
2369
2369
|
let drive_addons = {};
|
|
2370
2370
|
|
|
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;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2371
2377
|
if (typeof ocr !== "undefined") {
|
|
2372
|
-
|
|
2378
|
+
drive_addons.ocr = ocr;
|
|
2373
2379
|
}
|
|
2374
2380
|
|
|
2375
2381
|
if (typeof image_convertor !== "undefined") {
|
|
2376
|
-
|
|
2382
|
+
drive_addons.image_convertor = image_convertor;
|
|
2377
2383
|
}
|
|
2378
2384
|
|
|
2379
2385
|
if (typeof video_ai !== "undefined") {
|
|
2380
|
-
|
|
2386
|
+
drive_addons.video_ai = video_ai;
|
|
2381
2387
|
}
|
|
2382
2388
|
|
|
2383
2389
|
if (typeof ai_component_generator !== "undefined") {
|
|
2384
|
-
|
|
2390
|
+
drive_addons.ai_component_generator = ocr;
|
|
2385
2391
|
}
|
|
2386
2392
|
|
|
2387
2393
|
if (typeof edit_image !== "undefined") {
|
|
2388
|
-
|
|
2394
|
+
drive_addons.edit_image = edit_image;
|
|
2389
2395
|
}
|
|
2390
2396
|
};
|
|
2391
2397
|
|