@xuda.io/account_module 1.2.202 → 1.2.204
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -854,7 +854,7 @@ export const search_users = async function (req) {
|
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
856
|
|
|
857
|
-
export const read_emails = async function (req) {
|
|
857
|
+
export const read_emails = async function (req, job_id, headers) {
|
|
858
858
|
const { uid, email_account_address, email_account_id, accessToken, vendor } = req;
|
|
859
859
|
|
|
860
860
|
const email_module = await import(`${module_path}/email_module/index.mjs`);
|
|
@@ -930,7 +930,7 @@ export const read_emails = async function (req) {
|
|
|
930
930
|
// uid,
|
|
931
931
|
// });
|
|
932
932
|
// }
|
|
933
|
-
await add_contact({ uid, name, email });
|
|
933
|
+
await add_contact({ uid, name, email }, job_id, headers);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
};
|
|
@@ -1160,7 +1160,7 @@ export const delete_contact = async function (req) {
|
|
|
1160
1160
|
// }
|
|
1161
1161
|
// );
|
|
1162
1162
|
|
|
1163
|
-
export const add_contact = async function (req) {
|
|
1163
|
+
export const add_contact = async function (req, job_id, headers) {
|
|
1164
1164
|
const { uid, email, name, stat, contact_uid, req_id, profile_picture, context } = req;
|
|
1165
1165
|
const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
|
|
1166
1166
|
|
|
@@ -1180,6 +1180,8 @@ export const add_contact = async function (req) {
|
|
|
1180
1180
|
|
|
1181
1181
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1182
1182
|
|
|
1183
|
+
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);
|
|
1184
|
+
|
|
1183
1185
|
return ret;
|
|
1184
1186
|
}
|
|
1185
1187
|
return { code: -1, data: 'contact already exist active or deleted' };
|