@xuda.io/account_module 1.2.2174 → 1.2.2175

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 +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3446,7 +3446,9 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
3446
3446
 
3447
3447
  for (const [user_id, val2] of Object.entries(val || {})) {
3448
3448
  try {
3449
- data.user_info[user_id] = (await db_module.get_couch_doc_native('xuda_accounts', user_id))?.account_info?.full_name;
3449
+ const account_info = await db_module.get_couch_doc_native('xuda_accounts', user_id);
3450
+
3451
+ data.user_info[user_id] = account_info.account_type === 'business' ? account_info.business_name : `${account_info.first_name} ${account_info.last_name}`;
3450
3452
  debugger;
3451
3453
  } catch (error) {}
3452
3454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2174",
3
+ "version": "1.2.2175",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {