@xuda.io/ai_module 1.1.3575 → 1.1.3577
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 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2374,15 +2374,8 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2374
2374
|
let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
|
|
2375
2375
|
|
|
2376
2376
|
if (e.team_req_from_uid) {
|
|
2377
|
-
// const account_info_ret = await account_module.get_account_name({ uid_query: e.team_req_from_uid });
|
|
2378
|
-
// if (account_info_ret.code < 0) {
|
|
2379
|
-
// continue; // throw new Error(`account ${contact_uid} not found`);
|
|
2380
|
-
// }
|
|
2381
|
-
|
|
2382
|
-
// doc.account_info = account_info_ret.data;
|
|
2383
2377
|
doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
2384
2378
|
doc.icon_pattern = doc.user_contact.profile_avatar;
|
|
2385
|
-
// doc.icon_pattern = account_info_ret.data.profile_avatar;
|
|
2386
2379
|
}
|
|
2387
2380
|
|
|
2388
2381
|
//share_item_id
|
|
@@ -2399,9 +2392,9 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2399
2392
|
let docs = [];
|
|
2400
2393
|
for (let doc of user_agents.docs) {
|
|
2401
2394
|
// row.value._id = row.id;
|
|
2402
|
-
let
|
|
2395
|
+
let info_doc = await get_ai_agent_info(uid, job_id, headers, doc);
|
|
2403
2396
|
|
|
2404
|
-
docs.push(
|
|
2397
|
+
docs.push(info_doc);
|
|
2405
2398
|
}
|
|
2406
2399
|
|
|
2407
2400
|
return { code: 8, data: { docs: [...requests_from.docs, ...docs] } };
|