@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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. 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 db_module.find_couch_query('xuda_drive', opt);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1364",
3
+ "version": "1.1.1365",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {