@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.
- package/index.mjs +4 -1
- 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]]
|
|
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
|
};
|