@xuda.io/ai_module 1.1.5037 → 1.1.5039
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 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1326,12 +1326,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1326
1326
|
|
|
1327
1327
|
switch (filter_type) {
|
|
1328
1328
|
case 'archived': {
|
|
1329
|
-
stat_type =
|
|
1329
|
+
stat_type = filter_type;
|
|
1330
1330
|
break;
|
|
1331
1331
|
}
|
|
1332
1332
|
case 'shared': {
|
|
1333
|
-
|
|
1334
|
-
// opt.selector.team_req_stat = { $eq: 3 };
|
|
1333
|
+
stat_type = filter_type;
|
|
1335
1334
|
break;
|
|
1336
1335
|
}
|
|
1337
1336
|
|
|
@@ -1351,8 +1350,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1351
1350
|
const mine_uid = filter_type === 'mine' ? uid : 'all';
|
|
1352
1351
|
|
|
1353
1352
|
const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'ai_chat_list', {
|
|
1354
|
-
startkey: [profile_id,
|
|
1355
|
-
endkey: [profile_id,
|
|
1353
|
+
startkey: [profile_id, stat_type, conversation_type, reference_id, mine_uid, 0],
|
|
1354
|
+
endkey: [profile_id, stat_type, conversation_type, reference_id, mine_uid, 9999999999999],
|
|
1356
1355
|
limit: parseInt(limit) || 9999,
|
|
1357
1356
|
skip: parseInt(skip) || 0,
|
|
1358
1357
|
include_docs: true,
|