@xuda.io/account_module 1.2.1489 → 1.2.1491

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.
Files changed (2) hide show
  1. package/index.mjs +7 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2950,7 +2950,7 @@ export const create_account_profile = async function (req, job_id, headers) {
2950
2950
  export const update_account_profile = async function (req, job_id, headers) {
2951
2951
  const { uid, _id } = req;
2952
2952
  const app_id = await get_account_default_project_id(uid);
2953
- const account_profile_properties = ['profile_name', 'profile_signature', 'email_account_id', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj', 'auto_respond', 'auto_respond_mode', 'auto_respond_agents'];
2953
+ const account_profile_properties = ['profile_name', 'profile_signature', 'email_account_id', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj', 'auto_respond', 'auto_respond_mode', 'auto_respond_agents', 'profile_type'];
2954
2954
  try {
2955
2955
  let { data: account_profile_doc } = await db_module.get_app_couch_doc(app_id, _id);
2956
2956
 
@@ -3051,3 +3051,9 @@ export const save_picture_cache = async function (uid, docType, name, file, meta
3051
3051
  const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
3052
3052
  return save_ret;
3053
3053
  };
3054
+
3055
+ export const get_picture_cache = async function (uid, docType, name) {
3056
+ let opt = { selector: { name }, limit: 1 };
3057
+
3058
+ const ret = await db_module.find_couch_query('xuda_cache', from_opt);
3059
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1489",
3
+ "version": "1.2.1491",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {