debug: add logging before/after queryEvents calls for reactions

This commit is contained in:
Gigi
2025-10-20 00:35:51 +02:00
parent e5b1594933
commit 94f1f9035b

View File

@@ -319,10 +319,12 @@ class ReadingProgressController {
try {
// Query kind:17 (URL reactions) in parallel with kind:7 (event reactions)
console.log('[readingProgress] Querying kind:17 and kind:7 reactions...')
console.log('[readingProgress] About to call queryEvents for kind:17 and kind:7...')
const [kind17Events, kind7Events] = await Promise.all([
queryEvents(relayPool, { kinds: [17], authors: [pubkey] }, { relayUrls: RELAYS }),
queryEvents(relayPool, { kinds: [7], authors: [pubkey] }, { relayUrls: RELAYS })
])
console.log('[readingProgress] queryEvents returned!')
console.log('[readingProgress] Got kind:17 events:', kind17Events.length)
console.log('[readingProgress] Got kind:7 events:', kind7Events.length)