@xuda.io/account_module 1.2.1434 → 1.2.1436

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1329,7 +1329,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1329
1329
 
1330
1330
  doc.interactions = 0;
1331
1331
  doc.chats = 0;
1332
- debugger;
1332
+
1333
1333
  const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
1334
1334
  for (let chat_doc of chats_ret.data.docs) {
1335
1335
  doc.notifications += chat_doc.notifications;
@@ -2152,6 +2152,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
2152
2152
  };
2153
2153
 
2154
2154
  const set_contact_profile_picture = async function (uid, contact_id, metadata, job_id, headers) {
2155
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
2155
2156
  const account_profile_info = await get_active_account_profile_info(uid);
2156
2157
 
2157
2158
  await update_contact_profile_picture_status(uid, contact_id, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1434",
3
+ "version": "1.2.1436",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {