@xuda.io/drive_module 1.1.1027 → 1.1.1029
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 +3 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -368,10 +368,7 @@ exports.get_drive_files = async function (req) {
|
|
|
368
368
|
if (val.type === "file") {
|
|
369
369
|
val.cy_data = ret.data;
|
|
370
370
|
|
|
371
|
-
val.access_link = await rep(
|
|
372
|
-
val.path, // + "?r=" + ret.data._rev,
|
|
373
|
-
drive_type
|
|
374
|
-
);
|
|
371
|
+
val.access_link = await rep(internal_path, drive_type);
|
|
375
372
|
}
|
|
376
373
|
if (val.type === "directory") {
|
|
377
374
|
val.name = ret.data.folder_name;
|
|
@@ -401,8 +398,8 @@ exports.get_drive_files = async function (req) {
|
|
|
401
398
|
val.date_created = new Date(val.stat.birthtime).valueOf();
|
|
402
399
|
delete val.stat;
|
|
403
400
|
|
|
404
|
-
val.path = get_studio_path(val.path, app_id_master, val.relativePath);
|
|
405
|
-
val.file_path = path.join(val.path, val.name);
|
|
401
|
+
val.path = directory_path; // get_studio_path(val.path, app_id_master, val.relativePath);
|
|
402
|
+
val.file_path = file_path; // path.join(val.path, val.name);
|
|
406
403
|
val.tags = ret?.data?.tags || [];
|
|
407
404
|
}
|
|
408
405
|
for await (var index of values_to_delete.reverse()) {
|