@xuda.io/account_module 1.2.1901 → 1.2.1903
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2788,7 +2788,7 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2788
2788
|
const conversations = await db_module.find_app_couch_query(account_profile_info.app_id, {
|
|
2789
2789
|
selector: {
|
|
2790
2790
|
docType: 'chat_conversation',
|
|
2791
|
-
contact_id,
|
|
2791
|
+
reference_id: contact_id,
|
|
2792
2792
|
stat: 3,
|
|
2793
2793
|
|
|
2794
2794
|
process_stat: 'partial',
|
|
@@ -2797,7 +2797,7 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2797
2797
|
|
|
2798
2798
|
for await (let conversation of conversations.docs) {
|
|
2799
2799
|
await ai_module.process_conversation(uid, conversation._id, account_profile_info, job_id, headers);
|
|
2800
|
-
await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id }],
|
|
2800
|
+
await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id }], conversation._id, conversation.prompt, null, reference_id, conversation.reference_type === 'contacts', account_profile_info);
|
|
2801
2801
|
// await process_email(email.email_account_id, profile, uid, email._id, job_id, headers, null, true);
|
|
2802
2802
|
}
|
|
2803
2803
|
|