@xuda.io/ai_module 1.1.4217 → 1.1.4218
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2393,8 +2393,8 @@ const get_user_ai_agents = async function (uid) {
|
|
|
2393
2393
|
};
|
|
2394
2394
|
|
|
2395
2395
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2396
|
-
let { uid, _id, search, filter_type = 'all', limit, skip, agent_id } = req;
|
|
2397
|
-
|
|
2396
|
+
let { uid, _id, search, filter_type = 'all', limit, skip, agent_id, profile_id } = req;
|
|
2397
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid, profile_id);
|
|
2398
2398
|
try {
|
|
2399
2399
|
if (_id) {
|
|
2400
2400
|
let doc_ret = await get_studio_doc({ _id, uid });
|
|
@@ -2474,8 +2474,6 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
//////////////
|
|
2476
2476
|
|
|
2477
|
-
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
2478
|
-
|
|
2479
2477
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2480
2478
|
|
|
2481
2479
|
let user_agents = { docs: [], total_docs: 0 };
|