@xuda.io/drive_module 1.1.697 → 1.1.699

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -321,6 +321,11 @@ exports.get_drive_files = async function (req) {
321
321
  );
322
322
  }
323
323
 
324
+ val.path = val.path.replaceAll(
325
+ path.join(_conf.studio_drive_path, app_id_master),
326
+ "zzz"
327
+ );
328
+
324
329
  delete ret.data._id;
325
330
  delete ret.data._rev;
326
331
 
@@ -2363,7 +2368,7 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2363
2368
  );
2364
2369
 
2365
2370
  var target_file = path.join(file_path, file_name);
2366
- const master_id = await _common.get_project_app_id(app_id, true);
2371
+ // const master_id = await _common.get_project_app_id(app_id, true);
2367
2372
 
2368
2373
  let doc_ret;
2369
2374
 
@@ -2403,6 +2408,7 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2403
2408
  if (drive_type === "studio") {
2404
2409
  const ext = path.extname(file_name).toLowerCase();
2405
2410
  doc = {
2411
+ _id: target_file,
2406
2412
  docType: `${drive_type}_drive`,
2407
2413
  stat: 3,
2408
2414
  originalname: file_name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.697",
3
+ "version": "1.1.699",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {