@xuda.io/ai_module 1.1.3743 → 1.1.3744

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1720,7 +1720,7 @@ export const get_chat_conversation = async function (req) {
1720
1720
  };
1721
1721
 
1722
1722
  export const get_ai_chats = async function (req, job_id, headers) {
1723
- let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip } = req;
1723
+ let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
1724
1724
 
1725
1725
  const get_conversation_background = function (doc) {
1726
1726
  let deg = 145;
@@ -1798,6 +1798,9 @@ export const get_ai_chats = async function (req, job_id, headers) {
1798
1798
  if (reference_id) {
1799
1799
  opt.selector.reference_id = reference_id;
1800
1800
  }
1801
+ if (reference_id) {
1802
+ opt._id = reference_id;
1803
+ }
1801
1804
 
1802
1805
  if (search) {
1803
1806
  opt.selector = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3743",
3
+ "version": "1.1.3744",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",