@xuda.io/drive_module 1.1.756 → 1.1.758

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
@@ -646,7 +646,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
646
646
  app_id,
647
647
  uid,
648
648
  drive_type,
649
- file_name,
649
+
650
650
  file_path,
651
651
  };
652
652
  const check_existing_file_ret = await module.exports.check_drive_file(
@@ -657,7 +657,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
657
657
  return { code: -5, data: "file not exit" };
658
658
  }
659
659
 
660
- var target_file = path.join(file_path, file_name);
660
+ var target_file = file_path;
661
661
  const master_id = await _common.get_project_app_id(app_id, true);
662
662
  const tempPath = file_obj.path;
663
663
  if (drive_type === "studio") {
@@ -2062,7 +2062,7 @@ exports.search_drive_files = async function (req) {
2062
2062
  const dree_ret = await fs_module.dree_scan(directoryPath, options);
2063
2063
  var tree = dree_ret.data;
2064
2064
 
2065
- function findInName(obj, maxResults = 10) {
2065
+ function findInName(obj, maxResults = limit) {
2066
2066
  let results = [];
2067
2067
 
2068
2068
  // Function to search within an individual object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.756",
3
+ "version": "1.1.758",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {