@xuda.io/account_module 1.2.2097 → 1.2.2099
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
|
@@ -1782,6 +1782,8 @@ export const ts_contact = async function (uid, contact_id) {
|
|
|
1782
1782
|
export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
1783
1783
|
const { uid, year_from, month_from, day_from, year_to, month_to, day_to } = req;
|
|
1784
1784
|
try {
|
|
1785
|
+
const app_id = await get_account_default_project_id(uid);
|
|
1786
|
+
|
|
1785
1787
|
const d = new Date();
|
|
1786
1788
|
const curr_month = Number(String(d.getMonth() + 1).padStart(2, '0')); // months are 0-based
|
|
1787
1789
|
const curr_year = d.getFullYear();
|
|
@@ -1853,6 +1855,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
1853
1855
|
if (job_id) {
|
|
1854
1856
|
data.profile_info = {};
|
|
1855
1857
|
for (const [key, val] of Object.entries(data?.profiles || {})) {
|
|
1858
|
+
data.profile_info[key];
|
|
1856
1859
|
}
|
|
1857
1860
|
}
|
|
1858
1861
|
|