@xuda.io/drive_module 1.1.1181 → 1.1.1183

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 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -196,7 +196,7 @@ exports.get_drive_files = async function (req) {
196
196
  const fetch_drive_files = async function (ret, file_doc, app_id_reference, uid, datasource_id, domain = process.env.XUDA_HOSTNAME, app_obj) {
197
197
  let files = {
198
198
  path: req.path || '/',
199
- name: file_doc.data.folder_name || '/',
199
+ name: file_doc?.data?.folder_name || '/',
200
200
  file_path: req.path || '/',
201
201
  sizeInBytes: 0,
202
202
  children: [],
@@ -266,10 +266,10 @@ exports.get_drive_files = async function (req) {
266
266
  const file_doc = await db_module.get_app_couch_doc(app_id, path.basename(req.path) || '/');
267
267
 
268
268
  const { data: app_obj } = await db_module.get_app_obj(app_id);
269
-
269
+ const ret_fetch_drive_files = await fetch_drive_files(ret, file_doc, app_id_reference, null, app_obj.app_datacenter_id, app_obj.is_deployment ? app_obj.app_access_url : undefined, app_obj);
270
270
  return {
271
271
  code: 1,
272
- data: await fetch_drive_files(ret, file_doc, app_id_reference, null, app_obj.app_datacenter_id, app_obj.is_deployment ? app_obj.app_access_url : undefined, app_obj),
272
+ data: ret_fetch_drive_files,
273
273
  };
274
274
  };
275
275
  const get_user_files = async function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1181",
3
+ "version": "1.1.1183",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {