@xuda.io/ai_module 1.1.4936 → 1.1.4938
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 +3 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1819,9 +1819,8 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
1819
1819
|
}
|
|
1820
1820
|
if (!from_marketplace) {
|
|
1821
1821
|
doc.interactions = 0;
|
|
1822
|
-
doc.chats =
|
|
1823
|
-
|
|
1824
|
-
const aa = await agent_conversation_count(doc._id);
|
|
1822
|
+
doc.chats = await agent_conversation_count(doc._id);
|
|
1823
|
+
|
|
1825
1824
|
// const chats_ret = await get_ai_chats({ uid, reference_id: doc._id }, job_id, headers);
|
|
1826
1825
|
|
|
1827
1826
|
// for (let chat of chats_ret?.data?.docs || []) {
|
|
@@ -1983,7 +1982,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
1983
1982
|
}
|
|
1984
1983
|
|
|
1985
1984
|
//////////////////////
|
|
1986
|
-
|
|
1985
|
+
|
|
1987
1986
|
let docs = [];
|
|
1988
1987
|
for (let doc of user_agents.docs) {
|
|
1989
1988
|
let reference_doc;
|