@xuda.io/drive_module 1.1.891 → 1.1.893

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.
Files changed (2) hide show
  1. package/index.js +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -164,6 +164,7 @@ exports.get_drive_files = async function (req) {
164
164
  },
165
165
  },
166
166
  ];
167
+ opt.selector = { ...opt.selector, ...tags_query };
167
168
  }
168
169
 
169
170
  if (tags?.length) {
@@ -196,9 +197,9 @@ exports.get_drive_files = async function (req) {
196
197
  // skip: from,
197
198
  // };
198
199
 
199
- if (date) {
200
- opt.sort = [{ date_created: "desc" }];
201
- }
200
+ // if (date) {
201
+ // opt.sort = [{ date_created: "desc" }];
202
+ // }
202
203
 
203
204
  const ret = await db_module.find_app_couch_query(app_id, opt);
204
205
 
@@ -279,9 +280,9 @@ exports.get_drive_files = async function (req) {
279
280
  // skip: from,
280
281
  // };
281
282
 
282
- if (date) {
283
- opt.sort = [{ date_created: "desc" }];
284
- }
283
+ // if (date) {
284
+ // opt.sort = [{ date_created: "desc" }];
285
+ // }
285
286
 
286
287
  const ret = await db_module.find_couch_query("xuda_drive", opt);
287
288
  const file_doc = await db_module.get_couch_doc(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.891",
3
+ "version": "1.1.893",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {