@xuda.io/account_module 1.2.2138 → 1.2.2140
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2356,7 +2356,7 @@ export const get_contacts = async function (req, job_id, headers) {
|
|
|
2356
2356
|
|
|
2357
2357
|
const counts_ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_item_read', {
|
|
2358
2358
|
reduce: true,
|
|
2359
|
-
group_level:
|
|
2359
|
+
group_level: 999,
|
|
2360
2360
|
|
|
2361
2361
|
startkey: [uid, '', ''],
|
|
2362
2362
|
endkey: [uid, '', 'zzzzzz'],
|
|
@@ -2364,7 +2364,7 @@ export const get_contacts = async function (req, job_id, headers) {
|
|
|
2364
2364
|
|
|
2365
2365
|
let counts = {};
|
|
2366
2366
|
for (const val of counts_ret?.rows) {
|
|
2367
|
-
counts[val.key[
|
|
2367
|
+
counts[val.key[1]] = val.value;
|
|
2368
2368
|
}
|
|
2369
2369
|
return counts;
|
|
2370
2370
|
};
|