@xuda.io/drive_module 1.1.736 → 1.1.738

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 +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -152,6 +152,7 @@ exports.get_drive_files = async function (req) {
152
152
  public: doc.public,
153
153
  path: doc.file_path, // "/" + doc._id,
154
154
  date_created: doc.date_created,
155
+ file_path: path.join(doc.file_path, doc.originalname),
155
156
  });
156
157
  } catch (err) {
157
158
  console.error(err.message);
@@ -228,6 +229,7 @@ exports.get_drive_files = async function (req) {
228
229
  public: doc.public,
229
230
  path: doc.file_path, // "/" + doc._id,
230
231
  date_created: doc.date_created,
232
+ file_path: path.join(doc.file_path, doc.originalname),
231
233
  });
232
234
  } catch (err) {
233
235
  console.error(err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.736",
3
+ "version": "1.1.738",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {