@xuda.io/account_module 1.2.1558 → 1.2.1560
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1878,7 +1878,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
1878
1878
|
group_level: 999,
|
|
1879
1879
|
});
|
|
1880
1880
|
|
|
1881
|
-
let credits_obj,
|
|
1881
|
+
let credits_obj = {},
|
|
1882
1882
|
total_credits = 0;
|
|
1883
1883
|
for (const row of ai_credits.data.rows) {
|
|
1884
1884
|
const user = row.key[0];
|
|
@@ -1895,7 +1895,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
|
|
1897
1897
|
let data = { credits: { ...credits_obj, total: total_credits }, usage: { profile, projects: [], total: total_usage } };
|
|
1898
|
-
|
|
1898
|
+
|
|
1899
1899
|
return { code: 55, data };
|
|
1900
1900
|
} catch (err) {
|
|
1901
1901
|
return { code: -55, data: err.message };
|