@xuda.io/drive_module 1.1.1388 → 1.1.1390

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -420,7 +420,7 @@ export const get_drive_files = async (req) => {
420
420
  export const get_drive_file_info = async (req, job_id, headers) => {
421
421
  try {
422
422
  const { type, drive_type, uid, app_id, file_path } = req;
423
-
423
+ debugger;
424
424
  let doc = await get_drive_doc(type, drive_type, app_id, uid, file_path, headers);
425
425
 
426
426
  delete doc._id;
@@ -1804,7 +1804,6 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
1804
1804
  break;
1805
1805
  }
1806
1806
 
1807
- const validation_ret = file_upload_validator(file_name);
1808
1807
  if (doc_ret.code < 0) {
1809
1808
  if (drive_type === 'studio') {
1810
1809
  const app_id_reference = await _common.get_project_app_id(app_id);
@@ -1812,6 +1811,7 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
1812
1811
  const ext = path.extname(file_name).toLowerCase();
1813
1812
  const internal_file_path = path.join(_conf.studio_drive_path, app_id_reference, file_path);
1814
1813
  const statsObj = fs.statSync(internal_file_path);
1814
+ const validation_ret = file_upload_validator(file_name);
1815
1815
  doc = {
1816
1816
  _id: file_path,
1817
1817
  docType: `studio_drive`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1388",
3
+ "version": "1.1.1390",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {