@xuda.io/drive_module 1.1.1366 → 1.1.1367
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.mjs +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1495,7 +1495,6 @@ export const run_drive_pending_ocr = async (req) => {
|
|
|
1495
1495
|
|
|
1496
1496
|
let app_res = await db_module.find_couch_query('xuda_master', app_opt);
|
|
1497
1497
|
|
|
1498
|
-
opt.selector.docType = 'workspace_drive';
|
|
1499
1498
|
for (let app of app_res.docs) {
|
|
1500
1499
|
let opt = {
|
|
1501
1500
|
selector: { docType: 'user_drive', ocr_stat: 1, stat: 3 },
|
|
@@ -1506,7 +1505,7 @@ export const run_drive_pending_ocr = async (req) => {
|
|
|
1506
1505
|
for await (let doc of user_drive_res.docs) {
|
|
1507
1506
|
await ocr_drive_file(app._id, doc);
|
|
1508
1507
|
}
|
|
1509
|
-
|
|
1508
|
+
opt.selector.docType = 'workspace_drive';
|
|
1510
1509
|
const app_drive_res = await db_module.find_app_couch_query(app._id, opt);
|
|
1511
1510
|
for await (let doc of app_drive_res.docs) {
|
|
1512
1511
|
await ocr_drive_file(app._id, doc);
|