@xuda.io/drive_module 1.1.687 → 1.1.689

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 +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -117,11 +117,11 @@ exports.get_drive_files = async function (req) {
117
117
 
118
118
  const file_doc = await db_module.get_app_couch_doc(
119
119
  app_id,
120
- path.basename(req.path)
120
+ path.basename(req.path) || "/"
121
121
  );
122
122
  // console.log(file_doc);
123
123
 
124
- const files = {
124
+ let files = {
125
125
  path: req.path || "/",
126
126
  name: file_doc.data.folder_name || "/",
127
127
  // size: 0,
@@ -194,11 +194,11 @@ exports.get_drive_files = async function (req) {
194
194
  const ret = await db_module.find_couch_query("xuda_drive", opt);
195
195
  const file_doc = await db_module.get_couch_doc(
196
196
  "xuda_drive",
197
- path.basename(req.path)
197
+ path.basename(req.path) || "/"
198
198
  );
199
199
  // console.log(file_doc);
200
200
 
201
- const files = {
201
+ let files = {
202
202
  path: req.path || "/",
203
203
  name: file_doc.data.folder_name || "/",
204
204
  sizeInBytes: 0,
@@ -2368,7 +2368,7 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2368
2368
  doc_ret.data
2369
2369
  );
2370
2370
 
2371
- doc_ret.data._id = file_name_to;
2371
+ doc_ret.data._id = file_name_id;
2372
2372
  delete doc_ret.data._rev;
2373
2373
  }
2374
2374
  misc_module.rsync_drive_resources_to_remote_servers(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.687",
3
+ "version": "1.1.689",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {