@xuda.io/account_module 1.2.416 → 1.2.418

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -65,6 +65,10 @@ export const update_account_info = async function (req, job_id, headers) {
65
65
  account_info_changes_arr.push(key);
66
66
  account_obj.account_info[key] = val;
67
67
 
68
+ if (key === 'profile_picture' && account_obj.account_info['profile_picture'].includes('googleusercontent')) {
69
+ account_obj.account_info['profile_picture_google'] = val;
70
+ }
71
+
68
72
  if (account_obj.account_info.account_type === 'business') {
69
73
  if (key === 'company_name' && validate_input(val, 150, true, false) < 0) {
70
74
  error[key] = 'Invalid company';
@@ -1195,7 +1199,7 @@ export const get_contacts = async function (req) {
1195
1199
  }
1196
1200
 
1197
1201
  const contacts = await db_module.find_couch_query('xuda_contacts', opt);
1198
- debugger;
1202
+
1199
1203
  for await (let doc of contacts.docs) {
1200
1204
  if (doc.contact_uid) {
1201
1205
  const account_ret = await get_account_name({ uid_query: doc.contact_uid });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.416",
3
+ "version": "1.2.418",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {