@xuda.io/ai_module 1.1.5098 → 1.1.5099
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1418,7 +1418,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1418
1418
|
let ai_chats = { docs: [], total_docs: 0 };
|
|
1419
1419
|
|
|
1420
1420
|
if (filter_type !== 'pending') {
|
|
1421
|
-
if (reference_id && reference_type === 'contacts') {
|
|
1421
|
+
if (reference_id && (reference_type === 'contacts' || reference_type === 'account_profiles')) {
|
|
1422
1422
|
ai_chats = await get_data_view_conversation_items();
|
|
1423
1423
|
} else {
|
|
1424
1424
|
ai_chats = await get_data_find();
|