@xuda.io/account_module 1.2.1523 → 1.2.1524

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3019,6 +3019,8 @@ export const get_picture_cache = async function (uid, docType, name, email) {
3019
3019
 
3020
3020
  export const save_cache_hit = async function (_id) {
3021
3021
  let doc_ret = await db_module.get_couch_doc('xuda_cache', _id);
3022
- doc_ret.data.hit++;
3023
- await db_module.save_couch_doc('xuda_cache', doc_ret.data);
3022
+ if (doc_ret.code > -1) {
3023
+ doc_ret.data.hit++;
3024
+ await db_module.save_couch_doc('xuda_cache', doc_ret.data);
3025
+ }
3024
3026
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1523",
3
+ "version": "1.2.1524",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {