@xuda.io/drive_module 1.1.1095 → 1.1.1096
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 +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2361,9 +2361,12 @@ exports.update_drive_addons = async function (req, job_id) {
|
|
|
2361
2361
|
|
|
2362
2362
|
var app_obj_ret = await db_module.get_app_obj(app_id);
|
|
2363
2363
|
const app_obj = app_obj_ret.data;
|
|
2364
|
+
if (!app_obj.drive_addons) {
|
|
2365
|
+
app_obj.drive_addons = {};
|
|
2366
|
+
}
|
|
2364
2367
|
|
|
2365
|
-
if (typeof
|
|
2366
|
-
app_obj.
|
|
2368
|
+
if (typeof app_id !== "undefined") {
|
|
2369
|
+
app_obj.drive_addons.ocr = ocr;
|
|
2367
2370
|
}
|
|
2368
2371
|
};
|
|
2369
2372
|
|