@xuda.io/account_module 1.2.2141 → 1.2.2142
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2346,7 +2346,11 @@ export const get_contacts = async function (req, job_id, headers) {
|
|
|
2346
2346
|
|
|
2347
2347
|
let counts = {};
|
|
2348
2348
|
for (const val of counts_ret?.rows) {
|
|
2349
|
-
counts[val.key[1]]
|
|
2349
|
+
if (!counts[val.key[1]]) {
|
|
2350
|
+
counts[val.key[1]] = 0;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
counts[val.key[1]] += val.value;
|
|
2350
2354
|
}
|
|
2351
2355
|
|
|
2352
2356
|
return counts;
|