@xuda.io/drive_module 1.1.778 → 1.1.780
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 +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2560,7 +2560,7 @@ const get_drive_doc = async function (
|
|
|
2560
2560
|
);
|
|
2561
2561
|
|
|
2562
2562
|
let doc_ret;
|
|
2563
|
-
|
|
2563
|
+
let doc;
|
|
2564
2564
|
switch (drive_type) {
|
|
2565
2565
|
case "studio": {
|
|
2566
2566
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
@@ -2604,6 +2604,8 @@ const get_drive_doc = async function (
|
|
|
2604
2604
|
file_ext: ext,
|
|
2605
2605
|
is_archive: _conf.archive_drive_ext.includes(ext) ? true : false,
|
|
2606
2606
|
drive_type,
|
|
2607
|
+
app_id: await _common.get_project_app_id(app_id),
|
|
2608
|
+
app_id_reference: await _common.get_project_app_id(app_id, true),
|
|
2607
2609
|
};
|
|
2608
2610
|
|
|
2609
2611
|
doc.app_id = await _common.get_project_app_id(app_id);
|
|
@@ -2611,7 +2613,9 @@ const get_drive_doc = async function (
|
|
|
2611
2613
|
} else {
|
|
2612
2614
|
throw new Error("file doc not found");
|
|
2613
2615
|
}
|
|
2616
|
+
} else {
|
|
2617
|
+
doc = doc_ret.data;
|
|
2614
2618
|
}
|
|
2615
2619
|
|
|
2616
|
-
return
|
|
2620
|
+
return doc;
|
|
2617
2621
|
};
|