@xuda.io/drive_module 1.1.924 → 1.1.926
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1938,7 +1938,7 @@ exports.run_drive_pending_ocr = async function (req) {
|
|
|
1938
1938
|
try {
|
|
1939
1939
|
var opt = {
|
|
1940
1940
|
selector: { docType: "user_drive", ocr_stat: 1, stat: 3 },
|
|
1941
|
-
limit: 1,
|
|
1941
|
+
// limit: 1,
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
1944
|
const user_drive_res = await db_module.find_couch_query("xuda_drive", opt);
|
|
@@ -1975,8 +1975,8 @@ exports.run_drive_pending_ocr = async function (req) {
|
|
|
1975
1975
|
for (let app of app_res.docs) {
|
|
1976
1976
|
const app_drive_res = await db_module.find_app_couch_query(app._id, opt);
|
|
1977
1977
|
for await (let doc of app_drive_res.docs) {
|
|
1978
|
-
console.log(doc);
|
|
1979
|
-
await ocr_drive_file(
|
|
1978
|
+
console.log(opt, doc);
|
|
1979
|
+
await ocr_drive_file(doc);
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
1982
|
} catch (err) {
|