@xuda.io/ai_module 1.1.4124 → 1.1.4126

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1724,7 +1724,7 @@ export const get_chat_conversation = async function (req) {
1724
1724
  export const get_ai_chats = async function (req, job_id, headers) {
1725
1725
  let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
1726
1726
 
1727
- const account_info = await account_module.get_account_name({ uid });
1727
+ const active_account_profile_id = await account_module.get_active_account_profile(uid);
1728
1728
 
1729
1729
  const get_conversation_background = function (doc) {
1730
1730
  let deg = 145;
@@ -1805,6 +1805,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
1805
1805
  opt.selector.conversation_type = conversation_type;
1806
1806
  }
1807
1807
 
1808
+ if (active_account_profile_id) {
1809
+ opt.selector.active_account_profile_id = active_account_profile_id;
1810
+ }
1811
+
1808
1812
  if (reference_id) {
1809
1813
  opt.selector.reference_id = reference_id;
1810
1814
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4124",
3
+ "version": "1.1.4126",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",