Skip to content

Commit 4893513

Browse files
committed
fix: track only forwarded webhook requests
1 parent 9e82822 commit 4893513

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ app.get("/healthy", function (req, res) {
5454
// Submitting webhook requests.
5555
app.all("/webhook/:appSecret", function (req, res) {
5656
console.log(`[*] New webhook request`);
57-
incrementRequestCount("webhook");
5857
const chunks = [];
5958

6059
// Collect request's data.
@@ -100,6 +99,8 @@ function endWebhookResponse(websocketRequest) {
10099
return;
101100
}
102101

102+
incrementRequestCount("webhook");
103+
103104
// Remove response object from cache.
104105
delete webhookResponses[notificationId];
105106

0 commit comments

Comments
 (0)