@xuda.io/drive_module 1.1.1098 → 1.1.1100
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 +21 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2354,9 +2354,9 @@ exports.update_drive_addons = async function (req, job_id) {
|
|
|
2354
2354
|
app_id,
|
|
2355
2355
|
uid,
|
|
2356
2356
|
ocr,
|
|
2357
|
-
|
|
2357
|
+
image_convertor,
|
|
2358
2358
|
video_ai,
|
|
2359
|
-
|
|
2359
|
+
ai_component_generator,
|
|
2360
2360
|
edit_image,
|
|
2361
2361
|
} = req;
|
|
2362
2362
|
const master_id = await _common.get_project_app_id(app_id, true);
|
|
@@ -2366,9 +2366,27 @@ exports.update_drive_addons = async function (req, job_id) {
|
|
|
2366
2366
|
app_obj.drive_addons = {};
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
-
|
|
2369
|
+
let drive_addons = {};
|
|
2370
|
+
|
|
2371
|
+
if (typeof ocr !== "undefined") {
|
|
2370
2372
|
app_obj.drive_addons.ocr = ocr;
|
|
2371
2373
|
}
|
|
2374
|
+
|
|
2375
|
+
if (typeof image_convertor !== "undefined") {
|
|
2376
|
+
app_obj.drive_addons.image_convertor = image_convertor;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
if (typeof video_ai !== "undefined") {
|
|
2380
|
+
app_obj.drive_addons.video_ai = video_ai;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
if (typeof ai_component_generator !== "undefined") {
|
|
2384
|
+
app_obj.drive_addons.ai_component_generator = ocr;
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
if (typeof edit_image !== "undefined") {
|
|
2388
|
+
app_obj.drive_addons.edit_image = edit_image;
|
|
2389
|
+
}
|
|
2372
2390
|
};
|
|
2373
2391
|
|
|
2374
2392
|
setTimeout(async function () {
|