@xuda.io/drive_module 1.1.670 → 1.1.672
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 +9 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1973,7 +1973,14 @@ exports.search_drive_files = async function (req) {
|
|
|
1973
1973
|
var opt = {
|
|
1974
1974
|
selector,
|
|
1975
1975
|
limit,
|
|
1976
|
-
fields: [
|
|
1976
|
+
fields: [
|
|
1977
|
+
"originalname",
|
|
1978
|
+
"date_created",
|
|
1979
|
+
"server_file_name",
|
|
1980
|
+
"is_folder",
|
|
1981
|
+
"file_ext",
|
|
1982
|
+
"mime",
|
|
1983
|
+
],
|
|
1977
1984
|
};
|
|
1978
1985
|
|
|
1979
1986
|
const alias_results = (docs) => {
|
|
@@ -1981,7 +1988,7 @@ exports.search_drive_files = async function (req) {
|
|
|
1981
1988
|
return {
|
|
1982
1989
|
name: doc.originalname,
|
|
1983
1990
|
path: doc.server_file_name,
|
|
1984
|
-
type:
|
|
1991
|
+
type: doc.is_folder ? "directory" : "file", //type ||
|
|
1985
1992
|
};
|
|
1986
1993
|
});
|
|
1987
1994
|
};
|