@xuda.io/account_module 1.2.2089 → 1.2.2091
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
|
@@ -2956,7 +2956,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2956
2956
|
const user_account_profiles = await get_user_account_profiles();
|
|
2957
2957
|
|
|
2958
2958
|
const usage_ret = await get_account_ai_usage({ uid });
|
|
2959
|
-
|
|
2959
|
+
|
|
2960
2960
|
doc.max_credits = usage_ret?.data?.credits.total / user_account_profiles.length;
|
|
2961
2961
|
doc.used_credits = 0;
|
|
2962
2962
|
for (const [user, amount] of Object.entries(usage_ret?.data?.usage?.profile?.[doc._id] || {})) {
|
|
@@ -3258,7 +3258,7 @@ export const update_entity_account_profiles = async function (req, job_id, heade
|
|
|
3258
3258
|
}
|
|
3259
3259
|
|
|
3260
3260
|
let doc = await db_module.get_app_couch_doc_native(app_id, _id);
|
|
3261
|
-
|
|
3261
|
+
|
|
3262
3262
|
switch (doc.docType) {
|
|
3263
3263
|
case 'chat_conversation':
|
|
3264
3264
|
case 'contact': {
|