@xuda.io/drive_module 1.1.762 → 1.1.763

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 +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1189,13 +1189,13 @@ exports.update_drive_file_sharing_mode = async function (req, job_id, headers) {
1189
1189
  var doc = doc_ret.data;
1190
1190
 
1191
1191
  if (doc_ret.code < 0) {
1192
- const ext = path.extname(file_id).toLowerCase();
1192
+ const ext = path.extname(file_name).toLowerCase();
1193
1193
  doc = {
1194
- _id: file_id,
1194
+ _id: file_name,
1195
1195
  docType: `${drive_type}_drive`,
1196
1196
  stat: 3,
1197
- server_file_name: file_id,
1198
- originalname: file_id,
1197
+ server_file_name: file_name,
1198
+ originalname: file_name,
1199
1199
  uid,
1200
1200
  date_created: Date.now(),
1201
1201
  ip: headers["cf-connecting-ip"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.762",
3
+ "version": "1.1.763",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {