From 6352bc6a9a75fbd3c1e697fb63441c5cbfc75689 Mon Sep 17 00:00:00 2001 From: Daniel Salazar Date: Tue, 17 Mar 2026 13:33:01 -0700 Subject: [PATCH] fix: webhook message to peer (#2678) --- src/backend/src/modules/broadcast/BroadcastService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/modules/broadcast/BroadcastService.js b/src/backend/src/modules/broadcast/BroadcastService.js index f71189103..ad33218fb 100644 --- a/src/backend/src/modules/broadcast/BroadcastService.js +++ b/src/backend/src/modules/broadcast/BroadcastService.js @@ -320,6 +320,7 @@ export class BroadcastService extends BaseService { let nextNonce = this.#outgoingNonceByPeer.get(peerId) ?? 0; this.#outgoingNonceByPeer.set(peerId, nextNonce + 1); + console.log('Sending webhook message to peer', { peerId }); const timestamp = Math.floor(Date.now() / 1000); const body = { events }; @@ -328,7 +329,6 @@ export class BroadcastService extends BaseService { const signature = createHmac('sha256', mySecretKey).update(payloadToSign).digest('hex'); const myPublicKey = this.config.webhook?.key ?? ''; - console.debug('Sending webhook message to peer', { peerId }); const response = await fetch(url, { method: 'POST', headers: {