@xuda.io/account_module 1.2.2100 → 1.2.2102
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
|
@@ -1854,7 +1854,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
1854
1854
|
|
|
1855
1855
|
if (job_id) {
|
|
1856
1856
|
data.profile_info = {};
|
|
1857
|
-
for (const [key, val] of Object.entries(data?.profiles || {})) {
|
|
1857
|
+
for (const [key, val] of Object.entries(data?.usage?.profiles || {})) {
|
|
1858
1858
|
try {
|
|
1859
1859
|
data.profile_info[key] = await db_module.get_app_couch_doc_native(app_id, key);
|
|
1860
1860
|
} catch (error) {}
|
|
@@ -1960,7 +1960,7 @@ setTimeout(async () => {
|
|
|
1960
1960
|
const uid = 'd39126e0e2c51ffbd1aad10709fc8335';
|
|
1961
1961
|
|
|
1962
1962
|
let ret;
|
|
1963
|
-
|
|
1963
|
+
ret = await get_account_ai_usage({ uid }, 111);
|
|
1964
1964
|
// ret = await set_deep_research_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f9902' });
|
|
1965
1965
|
// ret = await generate_contact_avatar({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
1966
1966
|
// ret = await not_spam_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|