@xuda.io/drive_module 1.1.913 → 1.1.914
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 +2 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1702,7 +1702,7 @@ const ocr_drive_file = async function (doc) {
|
|
|
1702
1702
|
try {
|
|
1703
1703
|
doc.ocr_stat = 2;
|
|
1704
1704
|
doc.ocr_stat_date = Date.now();
|
|
1705
|
-
|
|
1705
|
+
let save_ret = await save_drive_doc(drive_type, app_id, doc, file_path);
|
|
1706
1706
|
|
|
1707
1707
|
doc = await get_drive_doc(
|
|
1708
1708
|
"file",
|
|
@@ -1791,21 +1791,7 @@ const ocr_drive_file = async function (doc) {
|
|
|
1791
1791
|
} finally {
|
|
1792
1792
|
doc.ocr_stat_ts = Date.now();
|
|
1793
1793
|
|
|
1794
|
-
|
|
1795
|
-
switch (drive_type) {
|
|
1796
|
-
case "workspace":
|
|
1797
|
-
case "studio":
|
|
1798
|
-
const app_id_reference = await _common.get_project_app_id(doc.app_id);
|
|
1799
|
-
await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
1800
|
-
break;
|
|
1801
|
-
|
|
1802
|
-
case "user":
|
|
1803
|
-
await db_module.save_couch_doc("xuda_drive", doc);
|
|
1804
|
-
break;
|
|
1805
|
-
|
|
1806
|
-
default:
|
|
1807
|
-
break;
|
|
1808
|
-
}
|
|
1794
|
+
save_ret = await save_drive_doc(drive_type, app_id, doc, file_path);
|
|
1809
1795
|
}
|
|
1810
1796
|
};
|
|
1811
1797
|
|