@xuda.io/drive_module 1.1.1329 → 1.1.1331

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 +5 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -92,6 +92,10 @@ export const get_drive_files = async (req) => {
92
92
  sort,
93
93
  };
94
94
 
95
+ if (!superuser_account_ids.includes(uid)) {
96
+ opt.selector.is_system = false;
97
+ }
98
+
95
99
  if (file_path) {
96
100
  opt.selector.file_path = file_path;
97
101
  }
@@ -479,7 +483,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
479
483
  data: 'error - files_arr must be Array',
480
484
  };
481
485
  }
482
- debugger;
486
+
483
487
  for await (const file of files_arr) {
484
488
  let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
485
489
 
@@ -488,7 +492,6 @@ export const delete_drive_files = async (req, job_id, headers) => {
488
492
  }
489
493
 
490
494
  if (doc.type === 'directory') {
491
- debugger;
492
495
  const files_in_directory = await get_folder_files(uid, app_id, drive_type, path.join(doc.file_path, doc.folder_name));
493
496
  if (files_in_directory?.length) {
494
497
  throw new Error(`Directory is not empty`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1329",
3
+ "version": "1.1.1331",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {