@xuda.io/account_module 1.2.2141 → 1.2.2143
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 +8 -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;
|
|
@@ -2364,6 +2368,9 @@ export const get_contacts = async function (req, job_id, headers) {
|
|
|
2364
2368
|
|
|
2365
2369
|
let counts = {};
|
|
2366
2370
|
for (const val of counts_ret?.rows) {
|
|
2371
|
+
if (!counts[val.key[1]]) {
|
|
2372
|
+
counts[val.key[1]] = 0;
|
|
2373
|
+
}
|
|
2367
2374
|
counts[val.key[1]] = val.value;
|
|
2368
2375
|
}
|
|
2369
2376
|
return counts;
|