@xuda.io/drive_module 1.1.875 → 1.1.877
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1720,14 +1720,14 @@ exports.search_drive_files = async function (req) {
|
|
|
1720
1720
|
let { tags = [] } = req;
|
|
1721
1721
|
|
|
1722
1722
|
let { limit = 100 } = req;
|
|
1723
|
-
|
|
1723
|
+
let tags_query = {};
|
|
1724
1724
|
const sort_by_obj = { name: "originalname", date: "date_created" };
|
|
1725
1725
|
|
|
1726
1726
|
// const protected_tags = ["tag:", "name:"];
|
|
1727
1727
|
debugger;
|
|
1728
1728
|
if (search_string) {
|
|
1729
1729
|
// var og_search = ""
|
|
1730
|
-
|
|
1730
|
+
tags_query = search_string
|
|
1731
1731
|
.split(" ")
|
|
1732
1732
|
.filter((e) => e.includes(":"))
|
|
1733
1733
|
.reduce(
|
|
@@ -1797,6 +1797,7 @@ exports.search_drive_files = async function (req) {
|
|
|
1797
1797
|
stat: 3,
|
|
1798
1798
|
$and: [],
|
|
1799
1799
|
file_path: path,
|
|
1800
|
+
...tags_query,
|
|
1800
1801
|
};
|
|
1801
1802
|
|
|
1802
1803
|
if (type) {
|