@xuda.io/account_module 1.2.1521 → 1.2.1522
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.mjs +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3016,6 +3016,7 @@ export const get_picture_cache = async function (uid, docType, name, email) {
|
|
|
3016
3016
|
};
|
|
3017
3017
|
|
|
3018
3018
|
export const save_cache_hit = async function (_id) {
|
|
3019
|
-
let
|
|
3020
|
-
|
|
3019
|
+
let doc_ret = await db_module.get_couch_doc('xuda_cache', _id);
|
|
3020
|
+
doc_ret.data.hit++;
|
|
3021
|
+
await db_module.save_couch_doc('xuda_cache', doc_ret.data);
|
|
3021
3022
|
};
|