@xuda.io/account_module 1.2.2142 → 1.2.2144

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2368,7 +2368,10 @@ export const get_contacts = async function (req, job_id, headers) {
2368
2368
 
2369
2369
  let counts = {};
2370
2370
  for (const val of counts_ret?.rows) {
2371
- counts[val.key[1]] = val.value;
2371
+ if (!counts[val.key[1]]) {
2372
+ counts[val.key[1]] = 0;
2373
+ }
2374
+ counts[val.key[1]] += val.value;
2372
2375
  }
2373
2376
  return counts;
2374
2377
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2142",
3
+ "version": "1.2.2144",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {