@xuda.io/account_module 1.2.2178 → 1.2.2179
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2965,7 +2965,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2965
2965
|
// doc.used_credits = usage_ret?.data?.usage?.profile?.[doc._id] || 0;
|
|
2966
2966
|
|
|
2967
2967
|
if (doc.shared_from_uid) {
|
|
2968
|
-
doc.max_credits = doc.max_credits / (doc.members.length || 1);
|
|
2968
|
+
doc.max_credits = doc.max_credits / (doc.members.length + 1 || 1);
|
|
2969
2969
|
}
|
|
2970
2970
|
|
|
2971
2971
|
return doc;
|