@xuda.io/ai_module 1.1.5074 → 1.1.5076
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
|
@@ -1346,7 +1346,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
1348
|
for (let val of ret.rows || []) {
|
|
1349
|
-
docs.push(conversations[val.value.conversation_id]);
|
|
1349
|
+
if (val.value.type === 'conversation') docs.push(conversations[val.value.conversation_id]);
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
return { docs };
|
|
@@ -3677,7 +3677,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
3677
3677
|
req._thread_reentry = Date.now() - conversation_doc.date_created_ts > 60000;
|
|
3678
3678
|
|
|
3679
3679
|
account_msa.ts_contact(uid, conversation_doc.reference_id);
|
|
3680
|
-
|
|
3680
|
+
|
|
3681
3681
|
switch (conversation_doc.conversation_type) {
|
|
3682
3682
|
case 'note': {
|
|
3683
3683
|
ret = await chat_note(req, job_id, headers);
|