@xuda.io/drive_module 1.1.884 → 1.1.886
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 +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -93,11 +93,15 @@ exports.get_drive_files = async function (req) {
|
|
|
93
93
|
date,
|
|
94
94
|
mime_type,
|
|
95
95
|
file_ext,
|
|
96
|
-
search_name,
|
|
97
96
|
search_string,
|
|
98
97
|
sort_by = "name",
|
|
99
98
|
sort_dir = "desc",
|
|
100
99
|
} = req;
|
|
100
|
+
|
|
101
|
+
let { tags = [] } = req;
|
|
102
|
+
let tags_query = {};
|
|
103
|
+
const sort_by_obj = { name: "originalname", date: "date_created" };
|
|
104
|
+
|
|
101
105
|
try {
|
|
102
106
|
let opt = {
|
|
103
107
|
selector: {
|