@xuda.io/ai_module 1.1.3543 → 1.1.3545
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1714,7 +1714,7 @@ export const get_chat_conversation = async function (req) {
|
|
|
1714
1714
|
};
|
|
1715
1715
|
|
|
1716
1716
|
export const get_ai_chats = async function (req, job_id, headers) {
|
|
1717
|
-
let { uid, reference_id, _id, search, archived, pending, shared, conversation_type } = req;
|
|
1717
|
+
let { uid, reference_id, _id, search, archived, pending, shared, conversation_type, limit, skip } = req;
|
|
1718
1718
|
|
|
1719
1719
|
const get_conversation_background = function (doc) {
|
|
1720
1720
|
let deg = 145;
|
|
@@ -1758,6 +1758,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1758
1758
|
stat: 3,
|
|
1759
1759
|
reference_id: '',
|
|
1760
1760
|
},
|
|
1761
|
+
limit: limit || 9999,
|
|
1761
1762
|
};
|
|
1762
1763
|
|
|
1763
1764
|
if (archived) {
|
|
@@ -1771,8 +1772,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1771
1772
|
if (reference_id) {
|
|
1772
1773
|
opt.selector.reference_id = reference_id;
|
|
1773
1774
|
}
|
|
1774
|
-
if (
|
|
1775
|
-
opt.selector.shared_from_uid = { $
|
|
1775
|
+
if (shared) {
|
|
1776
|
+
opt.selector.shared_from_uid = { $gt: null };
|
|
1776
1777
|
}
|
|
1777
1778
|
|
|
1778
1779
|
const app_id = await account_module.get_account_default_project_id(uid);
|