@xuda.io/drive_module 1.1.878 → 1.1.880
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 +13 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -83,17 +83,19 @@ const get_studio_path = function (raw_path, ref, file_name) {
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
exports.get_drive_files = async function (req) {
|
|
86
|
-
const {
|
|
87
|
-
from = 0,
|
|
88
|
-
to = 999999,
|
|
89
|
-
drive_type,
|
|
90
|
-
app_id,
|
|
91
|
-
uid,
|
|
92
|
-
type,
|
|
93
|
-
date,
|
|
94
|
-
gtp_token,
|
|
95
|
-
} = req;
|
|
86
|
+
const { from = 0, to = 100, drive_type, app_id, uid, type, date } = req;
|
|
96
87
|
try {
|
|
88
|
+
let opt = {
|
|
89
|
+
selector: {
|
|
90
|
+
docType: "workspace_drive",
|
|
91
|
+
stat: 3,
|
|
92
|
+
type,
|
|
93
|
+
file_path: req.path,
|
|
94
|
+
},
|
|
95
|
+
limit: to - from,
|
|
96
|
+
skip: from,
|
|
97
|
+
};
|
|
98
|
+
|
|
97
99
|
validate_drive_type(drive_type);
|
|
98
100
|
|
|
99
101
|
function formatBytes(bytes) {
|
|
@@ -104,8 +106,8 @@ exports.get_drive_files = async function (req) {
|
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
const get_workspace_files = async function () {
|
|
107
|
-
// const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
108
109
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
110
|
+
opt.selector = "workspace_drive";
|
|
109
111
|
var opt = {
|
|
110
112
|
selector: {
|
|
111
113
|
docType: "workspace_drive",
|