@xuda.io/drive_module 1.1.1457 → 1.1.1459

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 +6 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1349,7 +1349,7 @@ export const upload_drive_file = async (req, job_id, headers = {}, file_obj) =>
1349
1349
  break;
1350
1350
  }
1351
1351
  case 'user': {
1352
- ref = uid;
1352
+ ref = await get_account_default_project_id(uid);
1353
1353
  file_name = 'drv_' + ref + '_' + (await _common.xuda_get_uuid(drive_type)) + ext;
1354
1354
 
1355
1355
  doc.server_file_name = file_name;
@@ -1445,12 +1445,12 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1445
1445
  case 'user': {
1446
1446
  selector.docType = 'user_drive';
1447
1447
 
1448
- const user_drive_res = await find_contact_query(uid, {
1449
- selector,
1450
- limit: 99,
1451
- });
1448
+ // const user_drive_res = await find_contact_query(uid, {
1449
+ // selector,
1450
+ // limit: 99,
1451
+ // });
1452
1452
  const app_id = await get_account_default_project_id(uid);
1453
- const workspace_drive_res = await db_module.find_app_couch_query(app_id, {
1453
+ const user_drive_res = await db_module.find_app_couch_query(app_id, {
1454
1454
  selector,
1455
1455
  limit: 99,
1456
1456
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1457",
3
+ "version": "1.1.1459",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {