@xuda.io/drive_module 1.1.1364 → 1.1.1365
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1458,13 +1458,14 @@ const validate_drive_type = (drive_type) => {
|
|
|
1458
1458
|
};
|
|
1459
1459
|
|
|
1460
1460
|
export const run_drive_pending_ocr = async (req) => {
|
|
1461
|
+
const { uid } = req;
|
|
1461
1462
|
try {
|
|
1462
1463
|
let opt = {
|
|
1463
1464
|
selector: { docType: 'user_drive', ocr_stat: 1, stat: 3 },
|
|
1464
1465
|
limit: 1,
|
|
1465
1466
|
};
|
|
1466
1467
|
|
|
1467
|
-
const user_drive_res = await
|
|
1468
|
+
const user_drive_res = await find_contact_query(uid, opt);
|
|
1468
1469
|
for await (let doc of user_drive_res.docs) {
|
|
1469
1470
|
await ocr_drive_file(null, doc);
|
|
1470
1471
|
}
|