@xuda.io/account_module 1.2.1500 → 1.2.1502

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.mjs +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3058,8 +3058,8 @@ export const get_picture_cache = async function (uid, docType, name) {
3058
3058
 
3059
3059
  const ret = await db_module.find_couch_query('xuda_cache', opt);
3060
3060
  debugger;
3061
- if (ret.doc.length) {
3062
- return ret.doc[0].file;
3061
+ if (ret.docs.length) {
3062
+ return ret.docs[0].file;
3063
3063
  }
3064
3064
 
3065
3065
  function findAnyThreeWords(str) {
@@ -3090,8 +3090,8 @@ export const get_picture_cache = async function (uid, docType, name) {
3090
3090
  const words_arr = phrase.split(' ');
3091
3091
  opt.selector = { docType, $and: [{ name: { $regex: `(?i)\\b${words_arr[0]}}\\b` } }, { name: { $regex: `(?i)\\b${words_arr[1]}\\b` } }, { name: { $regex: `(?i)\\b${words_arr[2]}\\b` } }] };
3092
3092
  const ret = await db_module.find_couch_query('xuda_cache', opt);
3093
- if (ret.doc.length) {
3094
- file = ret.doc[0].file;
3093
+ if (ret.docs.length) {
3094
+ file = ret.docs[0].file;
3095
3095
  break;
3096
3096
  }
3097
3097
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1500",
3
+ "version": "1.2.1502",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {