@xuda.io/drive_module 1.1.656 → 1.1.658

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 +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2372,6 +2372,7 @@ exports.update_drive_file_tags = async function (req) {
2372
2372
  doc = doc_ret.data;
2373
2373
  } else {
2374
2374
  if (drive_type === "studio") {
2375
+ const ext = path.extname(file_name_id).toLowerCase();
2375
2376
  doc = {
2376
2377
  docType: `${drive_type}_drive`,
2377
2378
  stat: 3,
@@ -2385,6 +2386,8 @@ exports.update_drive_file_tags = async function (req) {
2385
2386
  is_archive: _conf.archive_drive_ext.includes(ext) ? true : false,
2386
2387
  drive_type,
2387
2388
  };
2389
+ } else {
2390
+ throw new Error("file not found");
2388
2391
  }
2389
2392
  }
2390
2393
  doc.date_modified = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.656",
3
+ "version": "1.1.658",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {