@xuda.io/drive_module 1.1.694 → 1.1.696

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 +7 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2351,6 +2351,13 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2351
2351
  const { drive_type, app_id, uid, file_path, file_name, tags = [] } = req;
2352
2352
  validate_drive_type(drive_type);
2353
2353
 
2354
+ let check_req = {
2355
+ app_id,
2356
+ uid,
2357
+ drive_type,
2358
+ file_name,
2359
+ file_path,
2360
+ };
2354
2361
  const check_existing_file_ret = await module.exports.check_drive_file(
2355
2362
  check_req
2356
2363
  );
@@ -2365,17 +2372,6 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2365
2372
  const app_id_master = await _common.get_project_app_id(app_id, true);
2366
2373
  doc_ret = await db_module.get_app_couch_doc(app_id_master, target_file);
2367
2374
 
2368
- // if (doc_ret.code > -1) {
2369
- // doc_ret.data._delete = true;
2370
- // save_ret = await db_module.save_app_couch_doc(
2371
- // app_id_master,
2372
- // doc_ret.data
2373
- // );
2374
-
2375
- // doc_ret.data._id = file_name_id;
2376
- // delete doc_ret.data._rev;
2377
- // }
2378
-
2379
2375
  break;
2380
2376
  }
2381
2377
  case "workspace": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.694",
3
+ "version": "1.1.696",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {