@xuda.io/drive_module 1.1.944 → 1.1.946
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 +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1798,6 +1798,7 @@ const ocr_drive_file = async function (app_id, doc) {
|
|
|
1798
1798
|
doc.ocr_stat = 3;
|
|
1799
1799
|
} catch (err) {
|
|
1800
1800
|
doc.ocr_stat = 4;
|
|
1801
|
+
doc.ocr_error = err.message;
|
|
1801
1802
|
} finally {
|
|
1802
1803
|
doc.ocr_stat_ts = Date.now();
|
|
1803
1804
|
|
|
@@ -1976,7 +1977,6 @@ exports.run_drive_pending_ocr = async function (req) {
|
|
|
1976
1977
|
for (let app of app_res.docs) {
|
|
1977
1978
|
const app_drive_res = await db_module.find_app_couch_query(app._id, opt);
|
|
1978
1979
|
for await (let doc of app_drive_res.docs) {
|
|
1979
|
-
console.log(opt, doc);
|
|
1980
1980
|
await ocr_drive_file(app._id, doc);
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|