@xuda.io/account_module 1.2.1255 → 1.2.1256
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 +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2752,6 +2752,10 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2752
2752
|
doc.max_credits = usage_ret.data.credits.total / user_account_profiles.length;
|
|
2753
2753
|
doc.used_credits = usage_ret.data.usage[doc._id] || 0;
|
|
2754
2754
|
|
|
2755
|
+
if (doc.shared_from_uid) {
|
|
2756
|
+
doc.max_credits = doc.max_credits / doc.members.length;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2755
2759
|
return doc;
|
|
2756
2760
|
};
|
|
2757
2761
|
|