@xuda.io/ai_module 1.1.3910 → 1.1.3912
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1894,8 +1894,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1894
1894
|
delete opt.sort;
|
|
1895
1895
|
delete opt.skip;
|
|
1896
1896
|
opt.limit = 9999;
|
|
1897
|
+
opt.fields = ['_id'];
|
|
1897
1898
|
|
|
1898
1899
|
const counter = await db_module.find_app_couch_query(app_id, opt);
|
|
1900
|
+
ai_chats.total_docs = counter.docs.length;
|
|
1899
1901
|
}
|
|
1900
1902
|
}
|
|
1901
1903
|
|