@xuda.io/account_module 1.2.1217 → 1.2.1219
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
|
@@ -2464,7 +2464,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2464
2464
|
});
|
|
2465
2465
|
// console.log('ai_usage', ai_usage.rows);
|
|
2466
2466
|
|
|
2467
|
-
total_usage = 0;
|
|
2467
|
+
let total_usage = 0;
|
|
2468
2468
|
let profile = {};
|
|
2469
2469
|
|
|
2470
2470
|
debugger;
|
|
@@ -2494,7 +2494,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2494
2494
|
let contact_connection = 0;
|
|
2495
2495
|
let total_credits = membership_plan + ai_workspace_plan + contact_connection;
|
|
2496
2496
|
|
|
2497
|
-
let data = { credits: { membership_plan, ai_workspace_plan, contact_connection, total: total_credits }, usage: { profile, projects: [] } };
|
|
2497
|
+
let data = { credits: { membership_plan, ai_workspace_plan, contact_connection, total: total_credits }, usage: { profile, projects: [], total: total_usage } };
|
|
2498
2498
|
|
|
2499
2499
|
return { code: 55, data };
|
|
2500
2500
|
} catch (err) {
|