@xuda.io/ai_module 1.1.4051 → 1.1.4053

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 +13 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4268,6 +4268,16 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4268
4268
 
4269
4269
  if (conversation_doc.reference_type === 'contacts') {
4270
4270
  account_module.ts_contact(conversation_doc.reference_id);
4271
+
4272
+ switch (conversation_doc.conversation_type) {
4273
+ case 'note': {
4274
+ break;
4275
+ }
4276
+
4277
+ default:
4278
+ break;
4279
+ }
4280
+
4271
4281
  if (conversation_doc.conversation_type === 'note') {
4272
4282
  return await chat_note(req, job_id, headers);
4273
4283
  } else {
@@ -4506,9 +4516,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4506
4516
  // let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
4507
4517
  const reference_type = conversation_doc.reference_type;
4508
4518
  const reference_id = conversation_doc.reference_id;
4509
- if (reference_type === 'contact') {
4510
- account_module.ts_contact(reference_id);
4511
- }
4519
+ // if (reference_type === 'contact') {
4520
+ // account_module.ts_contact(reference_id);
4521
+ // }
4512
4522
 
4513
4523
  conversation_doc.stat = 2;
4514
4524
  conversation_doc.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4051",
3
+ "version": "1.1.4053",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",