@xuda.io/account_module 1.2.2095 → 1.2.2096
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1850,7 +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
|
-
|
|
1853
|
+
if (job_id) {
|
|
1854
|
+
for (const [key, val] of Object.entries(data?.profiles || {})) {
|
|
1855
|
+
}
|
|
1854
1856
|
}
|
|
1855
1857
|
|
|
1856
1858
|
return { code: 55, data };
|