@xuda.io/drive_module 1.1.1265 → 1.1.1267

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.mjs +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1202,7 +1202,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
1202
1202
  }
1203
1203
  };
1204
1204
  export const check_drive_file = async (req, job_id, headers, file_obj) => {
1205
- const { type = 'file', drive_type, app_id, uid, file_path } = req;
1205
+ const { type = 'file', drive_type, app_id, uid, file_path, folder_name } = req;
1206
1206
 
1207
1207
  let master_app_id;
1208
1208
 
@@ -1220,7 +1220,8 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1220
1220
  selector.originalname = path.basename(file_path);
1221
1221
  }
1222
1222
  if (type === 'directory') {
1223
- selector.folder_name = file_path;
1223
+ selector.file_path = file_path;
1224
+ selector.folder_name = folder_name;
1224
1225
  }
1225
1226
 
1226
1227
  switch (drive_type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1265",
3
+ "version": "1.1.1267",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {