@xuda.io/account_module 1.2.1523 → 1.2.1525
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 +5 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2985,6 +2985,7 @@ export const find_contact_query = async function (uid, opt) {
|
|
|
2985
2985
|
|
|
2986
2986
|
export const save_picture_cache = async function (uid, docType, name, file, metadata = {}) {
|
|
2987
2987
|
let doc = {
|
|
2988
|
+
_id:await _common.xuda_get_uuid('cache')
|
|
2988
2989
|
name,
|
|
2989
2990
|
docType,
|
|
2990
2991
|
uid,
|
|
@@ -3019,6 +3020,8 @@ export const get_picture_cache = async function (uid, docType, name, email) {
|
|
|
3019
3020
|
|
|
3020
3021
|
export const save_cache_hit = async function (_id) {
|
|
3021
3022
|
let doc_ret = await db_module.get_couch_doc('xuda_cache', _id);
|
|
3022
|
-
doc_ret.
|
|
3023
|
-
|
|
3023
|
+
if (doc_ret.code > -1) {
|
|
3024
|
+
doc_ret.data.hit++;
|
|
3025
|
+
await db_module.save_couch_doc('xuda_cache', doc_ret.data);
|
|
3026
|
+
}
|
|
3024
3027
|
};
|