@xuda.io/ai_module 1.1.3550 → 1.1.3552
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 +1 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1751,7 +1751,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1751
1751
|
|
|
1752
1752
|
try {
|
|
1753
1753
|
if (_id) return await get_ai_doc({ _id, uid });
|
|
1754
|
-
|
|
1754
|
+
|
|
1755
1755
|
let opt = {
|
|
1756
1756
|
selector: {
|
|
1757
1757
|
docType: 'chat_conversation',
|
|
@@ -1783,9 +1783,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1783
1783
|
if (reference_id) {
|
|
1784
1784
|
opt.selector.reference_id = reference_id;
|
|
1785
1785
|
}
|
|
1786
|
-
if (shared) {
|
|
1787
|
-
opt.selector.shared_from_uid = { $gt: null };
|
|
1788
|
-
}
|
|
1789
1786
|
|
|
1790
1787
|
if (search) {
|
|
1791
1788
|
opt.selector = {
|