@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.
- package/index.js +22 -14
- 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 (
|
|
2372
|
-
|
|
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
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2377
|
+
const set_drive_addons = function () {
|
|
2378
|
+
if (typeof ocr !== "undefined") {
|
|
2379
|
+
drive_addons.ocr = ocr;
|
|
2380
|
+
}
|
|
2378
2381
|
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
+
if (typeof image_convertor !== "undefined") {
|
|
2383
|
+
drive_addons.image_convertor = image_convertor;
|
|
2384
|
+
}
|
|
2382
2385
|
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
+
if (typeof video_ai !== "undefined") {
|
|
2387
|
+
drive_addons.video_ai = video_ai;
|
|
2388
|
+
}
|
|
2386
2389
|
|
|
2387
|
-
|
|
2388
|
-
|
|
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 () {
|