@xuda.io/account_module 1.2.2126 → 1.2.2128

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2895,7 +2895,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2895
2895
  // doc.used_credits = usage_ret?.data?.usage?.profile?.[doc._id] || 0;
2896
2896
 
2897
2897
  if (doc.shared_from_uid) {
2898
- doc.max_credits = doc.max_credits / doc.members.length;
2898
+ doc.max_credits = doc.max_credits / (doc.members.length || 1);
2899
2899
  }
2900
2900
 
2901
2901
  return doc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2126",
3
+ "version": "1.2.2128",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {