@xuda.io/drive_module 1.1.840 → 1.1.842

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 +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1448,6 +1448,16 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1448
1448
  master_app_id = await _common.get_project_app_id(app_id, true);
1449
1449
  }
1450
1450
 
1451
+ let selector = {
1452
+ type,
1453
+ file_path: path.dirname(file_path),
1454
+ stat: 3,
1455
+ };
1456
+
1457
+ if (type === "file") {
1458
+ selector.originalname = path.basename(file_path);
1459
+ }
1460
+
1451
1461
  switch (drive_type) {
1452
1462
  case "studio": {
1453
1463
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.840",
3
+ "version": "1.1.842",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {