@xuda.io/account_module 1.2.2124 → 1.2.2125

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 CHANGED
@@ -2885,7 +2885,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2885
2885
  const user_account_profiles = await get_user_account_profiles();
2886
2886
 
2887
2887
  const usage_ret = await get_account_ai_usage({ uid });
2888
-
2888
+ debugger;
2889
2889
  doc.max_credits = usage_ret?.data?.credits.total / user_account_profiles.length;
2890
2890
  doc.used_credits = 0;
2891
2891
  for (const [user, amount] of Object.entries(usage_ret?.data?.usage?.profile?.[doc._id] || {})) {
package/index_ms.mjs CHANGED
@@ -169,10 +169,6 @@ export const ts_contact = async function (...args) {
169
169
  return await broker.send_to_queue("ts_contact", ...args);
170
170
  };
171
171
 
172
- export const get_account_ai_usage = async function (...args) {
173
- return await broker.send_to_queue("get_account_ai_usage", ...args);
174
- };
175
-
176
172
  export const add_contact = async function (...args) {
177
173
  return await broker.send_to_queue("add_contact", ...args);
178
174
  };
@@ -289,6 +285,10 @@ export const save_cache_hit = async function (...args) {
289
285
  return await broker.send_to_queue("save_cache_hit", ...args);
290
286
  };
291
287
 
288
+ export const get_account_ai_usage = async function (...args) {
289
+ return await broker.send_to_queue("get_account_ai_usage", ...args);
290
+ };
291
+
292
292
  export const record_ai_usage = async function (...args) {
293
293
  return await broker.send_to_queue("record_ai_usage", ...args);
294
294
  };
package/index_msa.mjs CHANGED
@@ -169,10 +169,6 @@ export const ts_contact = function (...args) {
169
169
  broker.send_to_queue_async("ts_contact", ...args);
170
170
  };
171
171
 
172
- export const get_account_ai_usage = function (...args) {
173
- broker.send_to_queue_async("get_account_ai_usage", ...args);
174
- };
175
-
176
172
  export const add_contact = function (...args) {
177
173
  broker.send_to_queue_async("add_contact", ...args);
178
174
  };
@@ -289,6 +285,10 @@ export const save_cache_hit = function (...args) {
289
285
  broker.send_to_queue_async("save_cache_hit", ...args);
290
286
  };
291
287
 
288
+ export const get_account_ai_usage = function (...args) {
289
+ broker.send_to_queue_async("get_account_ai_usage", ...args);
290
+ };
291
+
292
292
  export const record_ai_usage = function (...args) {
293
293
  broker.send_to_queue_async("record_ai_usage", ...args);
294
294
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2124",
3
+ "version": "1.2.2125",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {