@xuda.io/drive_module 1.1.614 → 1.1.615

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 +7 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1418,11 +1418,13 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1418
1418
  };
1419
1419
  doc = { ...doc, ...(await get_file_info(tempPath)) };
1420
1420
 
1421
- const { code: check_code, data: check_data } =
1422
- await module.exports.check_drive_file({
1423
- file_name: doc.originalname,
1424
- file_path: doc.file_path,
1425
- });
1421
+ const check_res = await module.exports.check_drive_file({
1422
+ file_name: doc.originalname,
1423
+ file_path: doc.file_path,
1424
+ });
1425
+ if (check_res.code < 0) {
1426
+ return check_res;
1427
+ }
1426
1428
 
1427
1429
  switch (drive_type) {
1428
1430
  case "studio": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.614",
3
+ "version": "1.1.615",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {