@xuda.io/account_module 1.2.1615 → 1.2.1617

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 +12 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3035,9 +3035,9 @@ export const save_xuda_cache = async function (uid, docType, name, file, metadat
3035
3035
  return save_ret;
3036
3036
  };
3037
3037
 
3038
- export const get_xuda_cache = async function (uid, docType, name, email, return_property) {
3038
+ export const get_xuda_cache = async function (uid, docType, key, return_property) {
3039
3039
  let ret = await db_module.find_couch_query('xuda_cache', {
3040
- selector: { docType, name: email.trim() },
3040
+ selector: { docType, key: key.toLowerCase().trim() },
3041
3041
  limit: 1,
3042
3042
  });
3043
3043
  if (ret.docs.length) {
@@ -3045,14 +3045,16 @@ export const get_xuda_cache = async function (uid, docType, name, email, return_
3045
3045
  return (return_property ? ret.docs[0]?.[return_property] : ret.docs[0]) ?? null;
3046
3046
  }
3047
3047
 
3048
- ret = await db_module.find_couch_query('xuda_cache', {
3049
- selector: { docType, name: name.trim() },
3050
- limit: 1,
3051
- });
3052
- if (ret.docs.length) {
3053
- save_cache_hit(ret.docs[0]._id);
3054
- return (return_property ? ret.docs[0]?.[return_property] : ret.docs[0]) ?? null;
3055
- }
3048
+ return null;
3049
+
3050
+ // ret = await db_module.find_couch_query('xuda_cache', {
3051
+ // selector: { docType, name: name.trim() },
3052
+ // limit: 1,
3053
+ // });
3054
+ // if (ret.docs.length) {
3055
+ // save_cache_hit(ret.docs[0]._id);
3056
+ // return (return_property ? ret.docs[0]?.[return_property] : ret.docs[0]) ?? null;
3057
+ // }
3056
3058
  };
3057
3059
 
3058
3060
  export const save_cache_hit = async function (_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1615",
3
+ "version": "1.2.1617",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {