@xuda.io/ai_module 1.1.5588 → 1.1.5589
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
|
@@ -2308,7 +2308,7 @@ const update_conversation_items_stat = async function (app_id, stat, target_conv
|
|
|
2308
2308
|
return docs.length;
|
|
2309
2309
|
};
|
|
2310
2310
|
|
|
2311
|
-
const
|
|
2311
|
+
const update_conversation_stat = async function (app_id, agent_id, stat, conversation_id) {
|
|
2312
2312
|
const conversation_ids = [];
|
|
2313
2313
|
|
|
2314
2314
|
if (conversation_id) {
|
|
@@ -2349,7 +2349,7 @@ export const archive_ai_agent = async function (req) {
|
|
|
2349
2349
|
agent_doc.stat = 5;
|
|
2350
2350
|
agent_doc.ts = Date.now();
|
|
2351
2351
|
const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, agent_doc);
|
|
2352
|
-
const updated_conversation_items = await
|
|
2352
|
+
const updated_conversation_items = await update_conversation_stat(account_profile_info.app_id, agent_id, 5, conversation_id);
|
|
2353
2353
|
|
|
2354
2354
|
return { code: 1, data: { save_ret, updated_conversation_items } };
|
|
2355
2355
|
} catch (err) {
|