@xuda.io/drive_module 1.1.759 → 1.1.760

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.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2373,21 +2373,22 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2373
2373
 
2374
2374
  exports.update_drive_file_tags = async function (req, job_id, headers) {
2375
2375
  try {
2376
- const { drive_type, app_id, uid, file_path, file_name, tags = [] } = req;
2376
+ const { drive_type, app_id, uid, file_path, tags = [] } = req;
2377
+ const file_name = path.basename(file_path);
2377
2378
  validate_drive_type(drive_type);
2378
2379
 
2379
2380
  let check_req = {
2380
2381
  app_id,
2381
2382
  uid,
2382
2383
  drive_type,
2383
- file_name,
2384
+
2384
2385
  file_path,
2385
2386
  };
2386
2387
  const check_existing_file_ret = await module.exports.check_drive_file(
2387
2388
  check_req
2388
2389
  );
2389
2390
 
2390
- var target_file = path.join(file_path, file_name);
2391
+ var target_file = file_name;
2391
2392
  // const master_id = await _common.get_project_app_id(app_id, true);
2392
2393
 
2393
2394
  let doc_ret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.759",
3
+ "version": "1.1.760",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {