@xuda.io/ai_module 1.1.5086 → 1.1.5087

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.
Files changed (3) hide show
  1. package/index.mjs +6 -6
  2. package/old.mjs +2 -2
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1373,7 +1373,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1373
1373
  let doc = { date_created: e.team_req_date, pending: true, uid: e.team_req_from_uid, team_req_id: e._id };
1374
1374
 
1375
1375
  if (e.team_req_from_uid) {
1376
- doc.user_contact = await get_user_card(uid, e.team_req_from_uid);
1376
+ doc.user_contact = await get_user_card({ uid, uid_query: e.team_req_from_uid });
1377
1377
  }
1378
1378
 
1379
1379
  //share_item_id
@@ -1417,7 +1417,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1417
1417
  doc.notifications = contact_chat_conversation_count_ret[doc._id] - contact_chat_conversation_read_ret[doc._id];
1418
1418
  doc.chats = doc.interactions;
1419
1419
 
1420
- doc.user_contact = await get_user_card(uid, doc.uid);
1420
+ doc.user_contact = await get_user_card({ uid, uid_query: doc.uid });
1421
1421
 
1422
1422
  doc.privilege = doc.uid === uid || doc?.account_profile_info?.uid === uid;
1423
1423
 
@@ -1893,7 +1893,7 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
1893
1893
  }
1894
1894
 
1895
1895
  if (doc?.studio_meta?.createdByUid) {
1896
- doc.user_contact = await get_user_card(uid, doc.studio_meta.createdByUid);
1896
+ doc.user_contact = await get_user_card({ uid, uid_query: doc.studio_meta.createdByUid });
1897
1897
  }
1898
1898
  if (!from_marketplace) {
1899
1899
  doc.interactions = 0;
@@ -2044,7 +2044,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2044
2044
  let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
2045
2045
 
2046
2046
  if (e.team_req_from_uid) {
2047
- doc.user_contact = await get_user_card(uid, e.team_req_from_uid);
2047
+ doc.user_contact = await get_user_card({ uid, uid_query: e.team_req_from_uid });
2048
2048
  doc.icon_pattern = doc.user_contact.profile_avatar;
2049
2049
  }
2050
2050
 
@@ -2422,7 +2422,7 @@ export const get_apps = async function (req, job_id, headers) {
2422
2422
  let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
2423
2423
 
2424
2424
  if (e.team_req_from_uid) {
2425
- doc.user_contact = await get_user_card(uid, e.team_req_from_uid);
2425
+ doc.user_contact = await get_user_card({ uid, uid_query: e.team_req_from_uid });
2426
2426
  }
2427
2427
 
2428
2428
  //share_item_id
@@ -2447,7 +2447,7 @@ export const get_apps = async function (req, job_id, headers) {
2447
2447
  doc.reference_doc = reference_doc;
2448
2448
  }
2449
2449
 
2450
- doc.user_contact = await get_user_card(uid, doc.studio_meta.createdByUid);
2450
+ doc.user_contact = await get_user_card({ uid, uid_query: doc.studio_meta.createdByUid });
2451
2451
 
2452
2452
  doc.privilege = doc.studio_meta.createdByUid === uid || doc?.studio_meta?.account_profile_info?.uid === uid;
2453
2453
 
package/old.mjs CHANGED
@@ -1786,7 +1786,7 @@ export const get_apps = async function (req, job_id, headers) {
1786
1786
  let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
1787
1787
 
1788
1788
  if (e.team_req_from_uid) {
1789
- doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
1789
+ doc.user_contact = await account_module.get_user_card({ uid, uid_query: e.team_req_from_uid });
1790
1790
  }
1791
1791
 
1792
1792
  //share_item_id
@@ -1811,7 +1811,7 @@ export const get_apps = async function (req, job_id, headers) {
1811
1811
  doc.reference_doc = reference_doc;
1812
1812
  }
1813
1813
 
1814
- doc.user_contact = await account_module.get_user_card(uid, doc.studio_meta.createdByUid);
1814
+ doc.user_contact = await account_module.get_user_card({ uid, uid_query: doc.studio_meta.createdByUid });
1815
1815
 
1816
1816
  docs.push(doc);
1817
1817
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5086",
3
+ "version": "1.1.5087",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",