@xuda.io/account_module 1.2.2105 → 1.2.2106

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 +7 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1854,9 +1854,16 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
1854
1854
 
1855
1855
  if (job_id) {
1856
1856
  data.profile_info = {};
1857
+ data.user_info = {};
1857
1858
  for (const [key, val] of Object.entries(data?.usage?.profile || {})) {
1858
1859
  try {
1859
1860
  data.profile_info[key] = (await db_module.get_app_couch_doc_native(app_id, key)).profile_name;
1861
+
1862
+ for (const [key, val] of Object.entries(data?.usage?.profile || {})) {
1863
+ try {
1864
+ data.profile_info[key] = (await db_module.get_app_couch_doc_native(app_id, key)).profile_name;
1865
+ } catch (error) {}
1866
+ }
1860
1867
  } catch (error) {}
1861
1868
  }
1862
1869
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2105",
3
+ "version": "1.2.2106",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {