@xuda.io/drive_module 1.1.820 → 1.1.822

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 +2 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2589,12 +2589,6 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2589
2589
 
2590
2590
  let doc = await get_drive_doc(drive_type, app_id, uid, file_path, headers);
2591
2591
 
2592
- var target_file = file_name;
2593
- // const master_id = await _common.get_project_app_id(app_id, true);
2594
-
2595
- let doc_ret;
2596
-
2597
- doc = doc_ret.data;
2598
2592
  doc.date_modified = Date.now();
2599
2593
 
2600
2594
  doc.tags = tags;
@@ -2674,8 +2668,8 @@ const get_drive_doc = async function (
2674
2668
 
2675
2669
  if (
2676
2670
  doc_ret?.data?.type === "file" &&
2677
- !oc_ret?.data?._id.includes(app_id) &&
2678
- !oc_ret?.data?._id.includes(app_id_master)
2671
+ !doc_ret?.data?._id.includes(app_id) &&
2672
+ !doc_ret?.data?._id.includes(app_id_master)
2679
2673
  ) {
2680
2674
  throw new Error("file_path unauthorized");
2681
2675
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.820",
3
+ "version": "1.1.822",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {