@xuda.io/account_module 1.2.1599 → 1.2.1601
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1931,8 +1931,8 @@ setTimeout(async () => {
|
|
|
1931
1931
|
|
|
1932
1932
|
export const add_contact = async function (req, job_id, headers) {
|
|
1933
1933
|
try {
|
|
1934
|
-
const { uid, email, name, stat, contact_uid, context, source, team_req_id, metadata = {} } = req;
|
|
1935
|
-
const account_profile_info = await get_active_account_profile_info(uid);
|
|
1934
|
+
const { profile_id, uid, email, name, stat, contact_uid, context, source, team_req_id, metadata = {} } = req;
|
|
1935
|
+
const account_profile_info = await get_active_account_profile_info(uid, profile_id);
|
|
1936
1936
|
const { account_profile_obj } = account_profile_info;
|
|
1937
1937
|
|
|
1938
1938
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
@@ -1941,7 +1941,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1941
1941
|
const opt = {
|
|
1942
1942
|
selector: {
|
|
1943
1943
|
docType: 'contact',
|
|
1944
|
-
stat: { $
|
|
1944
|
+
stat: { $ne: 4 },
|
|
1945
1945
|
email,
|
|
1946
1946
|
},
|
|
1947
1947
|
limit: 1,
|