@xuda.io/drive_module 1.1.834 → 1.1.836

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -868,7 +868,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
868
868
  }
869
869
 
870
870
  let doc = await get_drive_doc(
871
- type,
871
+ "file",
872
872
  drive_type,
873
873
  app_id,
874
874
  uid,
@@ -1812,7 +1812,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1812
1812
  }
1813
1813
  };
1814
1814
  exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1815
- const { drive_type, app_id, uid, file_path } = req;
1815
+ const { type, drive_type, app_id, uid, file_path } = req;
1816
1816
 
1817
1817
  var master_app_id;
1818
1818
 
@@ -2544,7 +2544,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2544
2544
  exports.update_drive_file_tags = async function (req, job_id, headers) {
2545
2545
  try {
2546
2546
  const { type, drive_type, app_id, uid, file_path, tags = [] } = req;
2547
- const file_name = path.basename(file_path);
2547
+ // const file_name = path.basename(file_path);
2548
2548
  validate_drive_type(drive_type);
2549
2549
 
2550
2550
  let doc = await get_drive_doc(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.834",
3
+ "version": "1.1.836",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {