@xuda.io/drive_module 1.1.1254 → 1.1.1256

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1119,7 +1119,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
1119
1119
  if (await fs_module.file_exists(target_file)) {
1120
1120
  return {
1121
1121
  code: -762,
1122
- data: `${type} exist`,
1122
+ data: `file already exist`,
1123
1123
  };
1124
1124
  }
1125
1125
 
@@ -1228,7 +1228,7 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1228
1228
  if (await fs_module.file_exists(target_file)) {
1229
1229
  return {
1230
1230
  code: -764,
1231
- data: 'file exist',
1231
+ data: `${type} exist`,
1232
1232
  };
1233
1233
  }
1234
1234
 
@@ -1259,7 +1259,7 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
1259
1259
  if (user_drive_res.docs.length) {
1260
1260
  return {
1261
1261
  code: -764,
1262
- data: 'file exist',
1262
+ data: `${type} exist`,
1263
1263
  duplicates: user_drive_res.docs,
1264
1264
  };
1265
1265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1254",
3
+ "version": "1.1.1256",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {