@xuda.io/drive_module 1.1.877 → 1.1.879
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 +19 -18
- 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,7 +106,6 @@ 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);
|
|
109
110
|
var opt = {
|
|
110
111
|
selector: {
|
|
@@ -2397,11 +2398,11 @@ const save_drive_doc = async function (drive_type, app_id, doc) {
|
|
|
2397
2398
|
};
|
|
2398
2399
|
|
|
2399
2400
|
setTimeout(async function () {
|
|
2400
|
-
console.log(
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
);
|
|
2401
|
+
// console.log(
|
|
2402
|
+
// await exports.search_drive_files({
|
|
2403
|
+
// app_id: "prj3937cb6f9a31c8c7dea25055bba845b1",
|
|
2404
|
+
// drive_type: "workspace",
|
|
2405
|
+
// search_string: "tag:mediucal tag:school name:dw name:dawdddaw d",
|
|
2406
|
+
// })
|
|
2407
|
+
// );
|
|
2407
2408
|
}, 2000);
|