@xuda.io/drive_module 1.1.735 → 1.1.737
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.
- package/index.js +2 -1
- 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);
|
|
@@ -226,7 +227,7 @@ exports.get_drive_files = async function (req) {
|
|
|
226
227
|
access_link: `https://${process.env.XUDA_HOSTNAME}/user-drive/${uid}/${doc._id}`,
|
|
227
228
|
is_archive: doc.is_archive,
|
|
228
229
|
public: doc.public,
|
|
229
|
-
path: "/" + doc._id,
|
|
230
|
+
path: doc.file_path, // "/" + doc._id,
|
|
230
231
|
date_created: doc.date_created,
|
|
231
232
|
});
|
|
232
233
|
} catch (err) {
|