logger

Self-hosted WhatsApp logger us...
Log | Files | Refs | Activity

commit 09e760bb8c9c32744fb140da13a7e81f9dd92d2d
parent c1a0d60dad132f54a0853d34a5163028cdaaa78d
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Tue, 25 Aug 2026 07:46:03 +0530

Rename subIds to ids in grouped data structure
Diffstat:
Mindex.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js @@ -461,9 +461,9 @@ app.get('/api/chats/stream', verifyApiToken, async (req, res) => { const phone = data.phoneNumber || data.id.split('@')[0]; if (!grouped[phone]) { - grouped[phone] = { ...data, subIds: [data.id] }; + grouped[phone] = { ...data, ids: [data.id] }; } else { - grouped[phone].subIds.push(data.id); + grouped[phone].ids.push(data.id); // Keep the most recent data if ((data.lastActive || 0) > (grouped[phone].lastActive || 0)) { grouped[phone].lastActive = data.lastActive;
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror