@xuda.io/drive_module 1.1.1026 → 1.1.1028
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 -5
- 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;
|
|
@@ -390,7 +387,7 @@ exports.get_drive_files = async function (req) {
|
|
|
390
387
|
} else {
|
|
391
388
|
if (val.type === "directory") {
|
|
392
389
|
val.sizeInBytes = await get_folder_size(
|
|
393
|
-
|
|
390
|
+
internal_path,
|
|
394
391
|
drive_type,
|
|
395
392
|
app_id_master
|
|
396
393
|
);
|