@xuda.io/ai_module 1.1.3917 → 1.1.3919
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1832,7 +1832,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1832
1832
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1833
1833
|
|
|
1834
1834
|
////// FROM - IN
|
|
1835
|
-
let requests_from = { docs: [] };
|
|
1835
|
+
let requests_from = { docs: [], total_docs: 0 };
|
|
1836
1836
|
|
|
1837
1837
|
if (!reference_id) {
|
|
1838
1838
|
if (filter_type === 'pending') {
|
|
@@ -1886,7 +1886,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1886
1886
|
// key: reference_id || '',
|
|
1887
1887
|
// });
|
|
1888
1888
|
let ai_chats = { docs: [], total_docs: 0 };
|
|
1889
|
-
|
|
1889
|
+
|
|
1890
1890
|
if (filter_type !== 'pending') {
|
|
1891
1891
|
ai_chats = await db_module.find_app_couch_query(app_id, opt);
|
|
1892
1892
|
if (!limit || conversation_id) {
|