@xuda.io/drive_module 1.1.1357 → 1.1.1358

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -278,7 +278,7 @@ export const get_drive_files = async (req) => {
278
278
  opt.selector.docType = 'user_drive';
279
279
  opt.selector.uid = uid;
280
280
  const ret = await db_module.find_couch_query('xuda_drive', opt);
281
- const file_doc = await db_module.get_couch_doc('xuda_drive', path.basename(file_path) || '/');
281
+ const file_doc = await get_user_drive_file(uid, path.basename(file_path) || '/');
282
282
  return {
283
283
  code: 1,
284
284
  data: await fetch_drive_files(ret, file_doc, null, uid),
@@ -637,7 +637,7 @@ export const update_drive_file = async (req, job_id, headers, file_obj) => {
637
637
  case 'user': {
638
638
  ref = uid;
639
639
  doc.bucket[`${process.env.XUDA_HOSTNAME}`] = await upload_file_to_spaces(tempPath, uid, drive_type, file_name);
640
- save_ret = await db_module.save_couch_doc('xuda_drive', doc);
640
+ save_ret = await save_user_drive_file(uid, doc);
641
641
  break;
642
642
  }
643
643
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1357",
3
+ "version": "1.1.1358",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {