@xuda.io/drive_module 1.1.1042 → 1.1.1043
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 +11 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -194,7 +194,8 @@ exports.get_drive_files = async function (req) {
|
|
|
194
194
|
ret,
|
|
195
195
|
file_doc,
|
|
196
196
|
app_id_reference,
|
|
197
|
-
uid
|
|
197
|
+
uid,
|
|
198
|
+
datasource_id
|
|
198
199
|
) {
|
|
199
200
|
let files = {
|
|
200
201
|
path: req.path || "/",
|
|
@@ -267,9 +268,17 @@ exports.get_drive_files = async function (req) {
|
|
|
267
268
|
path.basename(req.path) || "/"
|
|
268
269
|
);
|
|
269
270
|
|
|
271
|
+
const { data: app_obj } = await db_module.get_app_obj(app_id);
|
|
272
|
+
|
|
270
273
|
return {
|
|
271
274
|
code: 1,
|
|
272
|
-
data: await get_drive_files(
|
|
275
|
+
data: await get_drive_files(
|
|
276
|
+
ret,
|
|
277
|
+
file_doc,
|
|
278
|
+
app_id_reference,
|
|
279
|
+
null,
|
|
280
|
+
app_obj.datasource_id
|
|
281
|
+
),
|
|
273
282
|
};
|
|
274
283
|
};
|
|
275
284
|
const get_user_files = async function () {
|