@xuda.io/account_module 1.2.1485 → 1.2.1487
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3039,13 +3039,14 @@ export const find_contact_query = async function (uid, opt) {
|
|
|
3039
3039
|
return ret;
|
|
3040
3040
|
};
|
|
3041
3041
|
|
|
3042
|
-
export const save_picture_cache = async function (uid, docType, name, url) {
|
|
3042
|
+
export const save_picture_cache = async function (uid, docType, name, url, metadata = {}) {
|
|
3043
3043
|
let doc = {
|
|
3044
3044
|
name,
|
|
3045
3045
|
docType,
|
|
3046
3046
|
uid,
|
|
3047
3047
|
url,
|
|
3048
3048
|
date_created_ts: Date.now(),
|
|
3049
|
+
metadata,
|
|
3049
3050
|
};
|
|
3050
3051
|
const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
|
|
3051
3052
|
return save_ret;
|