@xuda.io/account_module 1.2.2094 → 1.2.2095
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 +3 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1850,6 +1850,9 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
1850
1850
|
|
|
1851
1851
|
let data = { credits: { ...credits_obj, total: total_credits }, usage: { profile, projects: [], total: total_usage } };
|
|
1852
1852
|
|
|
1853
|
+
for (const [key, val] of Object.entries(data?.profiles || {})) {
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1853
1856
|
return { code: 55, data };
|
|
1854
1857
|
} catch (err) {
|
|
1855
1858
|
return { code: -55, data: err.message };
|