@xuda.io/ai_module 1.1.3675 → 1.1.3676
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1839,15 +1839,16 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1839
1839
|
for await (let e of requests_from_res.docs) {
|
|
1840
1840
|
// let doc = { date_created: e.team_req_date, shared_from_uid: e.team_req_from_uid, uid: e.team_req_from_uid, team_req_id: e._id };
|
|
1841
1841
|
|
|
1842
|
-
if (e.team_req_from_uid) {
|
|
1843
|
-
|
|
1844
|
-
}
|
|
1842
|
+
// if (e.team_req_from_uid) {
|
|
1843
|
+
// doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
1844
|
+
// }
|
|
1845
1845
|
|
|
1846
1846
|
//share_item_id
|
|
1847
1847
|
const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
|
|
1848
1848
|
const chat_doc = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
|
|
1849
1849
|
let doc = chat_doc;
|
|
1850
1850
|
doc.team_req_info = e;
|
|
1851
|
+
doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
1851
1852
|
// doc.title = chat_ret.title;
|
|
1852
1853
|
// doc.chat_image = chat_ret.chat_image;
|
|
1853
1854
|
// doc.team_req_id = e._id;
|