@xuda.io/drive_module 1.1.583 → 1.1.585

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -53,7 +53,7 @@ const fs = require("fs");
53
53
  req.drive_type = type;
54
54
 
55
55
  if (type === "workspace") {
56
- const { data: app_obj } = await db_module.get_app_obj(app_id);
56
+ const { data: app_obj } = await db_module.get_app_obj(req.app_id);
57
57
  if (app_obj.app_type === "datacenter") {
58
58
  const deploy_module = require(`${module_path}/deploy_module`);
59
59
  deploy_module.reset_deployment_cache(app_obj._id);
@@ -609,7 +609,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
609
609
  const { drive_type, app_id, file_path, file_name, uid } = req;
610
610
  validate_drive_type(drive_type);
611
611
 
612
- if (!file_obj?.file?.["originalname"]) {
612
+ if (!file_obj?.["originalname"]) {
613
613
  return { code: -4, data: "file data missing" };
614
614
  }
615
615
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.583",
3
+ "version": "1.1.585",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {