@xuda.io/account_module 1.2.1477 → 1.2.1479
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 +11 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3031,3 +3031,14 @@ export const find_contact_query = async function (uid, opt) {
|
|
|
3031
3031
|
const ret = await db_module.find_app_couch_query(app_id, opt);
|
|
3032
3032
|
return ret;
|
|
3033
3033
|
};
|
|
3034
|
+
|
|
3035
|
+
export const save_picture_cache = async function (uid, docType, url) {
|
|
3036
|
+
let doc = {
|
|
3037
|
+
docType,
|
|
3038
|
+
uid,
|
|
3039
|
+
url,
|
|
3040
|
+
date_created_ts: Date.now(),
|
|
3041
|
+
};
|
|
3042
|
+
const contact_ret = await db_module.save_couch_doc('xuda_cache', doc);
|
|
3043
|
+
return contact_ret;
|
|
3044
|
+
};
|