@xuda.io/ai_module 1.1.4922 → 1.1.4923

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 +5 -13
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5994,19 +5994,11 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
5994
5994
 
5995
5995
  const save_ret = await db_module.save_app_couch_doc(app_id, ai_agent_doc);
5996
5996
 
5997
- global[`_ai_module_ch`].sendToQueue(
5998
- 'ws_dashboard_module',
5999
- Buffer.from(
6000
- JSON.stringify({
6001
- method: 'emit_message_to_dashboard',
6002
- data: {
6003
- service: 'ai_agent_unpinned',
6004
- to: [uid],
6005
- data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
6006
- },
6007
- }),
6008
- ),
6009
- );
5997
+ ws_dashboard_ms.emit_message_to_dashboard({
5998
+ service: 'ai_agent_unpinned',
5999
+ to: [uid],
6000
+ data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
6001
+ });
6010
6002
 
6011
6003
  return save_ret;
6012
6004
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4922",
3
+ "version": "1.1.4923",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",