@xuda.io/drive_module 1.1.889 → 1.1.891
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 +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -108,6 +108,7 @@ exports.get_drive_files = async function (req) {
|
|
|
108
108
|
},
|
|
109
109
|
limit: to - from,
|
|
110
110
|
skip: from,
|
|
111
|
+
sort: [{ [sort_by_obj[sort_by]]: sort_dir }],
|
|
111
112
|
};
|
|
112
113
|
|
|
113
114
|
if (req.path) {
|
|
@@ -165,6 +166,12 @@ exports.get_drive_files = async function (req) {
|
|
|
165
166
|
];
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
if (tags?.length) {
|
|
170
|
+
opt.selector.tags = {
|
|
171
|
+
$in: tags,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
168
175
|
validate_drive_type(drive_type);
|
|
169
176
|
|
|
170
177
|
function formatBytes(bytes) {
|