@xuda.io/account_module 1.2.2232 → 1.2.2234

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2661,6 +2661,11 @@ export const not_spam_contact = async function (req, job_id, headers) {
2661
2661
  }
2662
2662
  contact_doc.is_spam = false;
2663
2663
 
2664
+ if (!contact_doc.contact_reference_conversation_id) {
2665
+ const conversation_obj = await ai_ms.create_openai_conversation();
2666
+ contact_doc.contact_reference_conversation_id = conversation_obj.id;
2667
+ }
2668
+
2664
2669
  const is_business = await ai_ms.is_business_contact(uid, contact_doc.email, contact_doc.name, contact_doc?.metadata?.subject, contact_doc?.metadata?.summarized_body, account_profile_info);
2665
2670
  contact_doc.account_type = is_business ? 'business' : 'personal';
2666
2671
  if (is_business) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2232",
3
+ "version": "1.2.2234",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {