@xuda.io/ai_module 1.1.4162 → 1.1.4163
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2383,6 +2383,8 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2383
2383
|
};
|
|
2384
2384
|
|
|
2385
2385
|
const get_user_ai_agents = async function (uid) {
|
|
2386
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
2387
|
+
|
|
2386
2388
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2387
2389
|
let opt = {
|
|
2388
2390
|
selector: {
|
|
@@ -2391,7 +2393,7 @@ const get_user_ai_agents = async function (uid) {
|
|
|
2391
2393
|
'properties.menuType': 'ai_agent',
|
|
2392
2394
|
},
|
|
2393
2395
|
};
|
|
2394
|
-
return await db_module.find_app_couch_query(app_id, opt);
|
|
2396
|
+
return await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
2395
2397
|
};
|
|
2396
2398
|
|
|
2397
2399
|
export const get_ai_agents = async function (req, job_id, headers) {
|