@xuda.io/account_module 1.2.208 → 1.2.210

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 +8 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1165,7 +1165,7 @@ export const add_contact = async function (req, job_id, headers) {
1165
1165
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
1166
1166
 
1167
1167
  if (!contact_ret.rows.length) {
1168
- const ret = await db_module.save_couch_doc('xuda_contacts', {
1168
+ const doc = {
1169
1169
  _id: await _common.xuda_get_uuid('contact'),
1170
1170
  email: [email],
1171
1171
  name,
@@ -1176,13 +1176,17 @@ export const add_contact = async function (req, job_id, headers) {
1176
1176
  uid,
1177
1177
  req_id,
1178
1178
  profile_picture,
1179
- });
1179
+ context,
1180
+ headers,
1181
+ };
1182
+ const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1180
1183
 
1181
1184
  const app_id = await get_account_default_project_id(uid);
1182
1185
 
1183
1186
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1184
- const prompt = ``;
1185
- const images_arr = await ai_module.create_and_upload_image_to_drive('user', 'Profile Images', ret.id, prompt, 1, uid, app_id, job_id, headers);
1187
+ // const prompt = ``;
1188
+ // const images_arr = await ai_module.create_and_upload_image_to_drive('user', 'Profile Images', ret.id, prompt, 1, uid, app_id, job_id, headers);
1189
+ ai_module.update_thumbnail('ai_agent', doc, app_id, uid, job_id, headers);
1186
1190
 
1187
1191
  return ret;
1188
1192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.208",
3
+ "version": "1.2.210",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {