@xuda.io/account_module 1.2.1276 → 1.2.1278
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 +8 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2904,14 +2904,20 @@ export const update_account_profile = async function (req, job_id, headers) {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
|
-
const get_contact = async function (uid, contact_id) {
|
|
2907
|
+
export const get_contact = async function (uid, contact_id) {
|
|
2908
2908
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2909
2909
|
const contact_ret = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
|
|
2910
2910
|
return contact_ret;
|
|
2911
2911
|
};
|
|
2912
2912
|
|
|
2913
|
-
const save_contact = async function (uid, contact_doc) {
|
|
2913
|
+
export const save_contact = async function (uid, contact_doc) {
|
|
2914
2914
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2915
2915
|
const contact_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_doc);
|
|
2916
2916
|
return contact_ret;
|
|
2917
2917
|
};
|
|
2918
|
+
|
|
2919
|
+
export const find_contact_query = async function (uid, opt) {
|
|
2920
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2921
|
+
const contact_ret = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
2922
|
+
return contact_ret;
|
|
2923
|
+
};
|