@xuda.io/ai_module 1.1.5412 → 1.1.5414
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
|
@@ -1274,7 +1274,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1274
1274
|
],
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
|
|
1277
|
+
debugger;
|
|
1278
1278
|
let ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
1279
1279
|
if (!limit || conversation_id) {
|
|
1280
1280
|
ai_chats.total_docs = ai_chats.docs.length;
|
|
@@ -1392,7 +1392,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1392
1392
|
let requests_from = { docs: [], total_docs: 0 };
|
|
1393
1393
|
|
|
1394
1394
|
if (!reference_id) {
|
|
1395
|
-
if (filter_type === 'pending') {
|
|
1395
|
+
if (filter_type === 'pending' && account_profile_info.is_main) {
|
|
1396
1396
|
const from_opt = { selector: { docType: 'team_request', access_type: 'chat', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
|
|
1397
1397
|
const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
|
|
1398
1398
|
|