@xuda.io/account_module 1.2.507 → 1.2.509

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 (2) hide show
  1. package/index.mjs +5 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -148,7 +148,7 @@ export const update_account_info = async function (req, job_id, headers) {
148
148
 
149
149
  if (!account_obj.account_project_id) {
150
150
  const app_module = await import(`${module_path}/app_module/index.mjs`);
151
- debugger;
151
+
152
152
  const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true, app_plugins_purchased: [' @xuda.io/xuda-dbs-plugin-xuda', '@xuda.io/xuda-framework-plugin-tailwind'] } }, job_id, headers);
153
153
  if (ret.code > -1) {
154
154
  account_obj.account_project_id = ret.data;
@@ -1269,8 +1269,7 @@ export const get_contact_info = async function (contact_doc, _id) {
1269
1269
  return; // throw new Error(`account ${contact_uid} not found`);
1270
1270
  }
1271
1271
 
1272
- doc.profile_avatar = account_info_ret.data.profile_avatar;
1273
-
1272
+ doc.profile_avatar = account_info_ret.data.profile_avatar;
1274
1273
  doc.card_background = get_contact_background(doc);
1275
1274
 
1276
1275
  //membership_plan
@@ -1291,6 +1290,9 @@ export const get_contact_info = async function (contact_doc, _id) {
1291
1290
 
1292
1291
  doc.icon_pattern = get_contact_pattern(doc);
1293
1292
  }
1293
+
1294
+ const chats_ret=await get_ai_chats({uid,doc._id})
1295
+
1294
1296
  doc.border = get_contact_border(doc);
1295
1297
  if (!doc.name) {
1296
1298
  doc.name = doc.email;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.507",
3
+ "version": "1.2.509",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {