Skip to content

Commit 1d37a25

Browse files
committed
fix(index): send success response to prevent 502 Bad Gateway error
1 parent bb3b969 commit 1d37a25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ exports.track = functions.https.onRequest(async (req, res) => {
125125
event_label: req.body.label,
126126
displayProductName: 'FireWeb',
127127
});
128+
129+
// Send a success response to prevent 502 Bad Gateway error
130+
res.status(200).send('Event tracked successfully');
128131
});
129132

130133
exports.webhook = functions.https.onRequest(async (req, res) => {

0 commit comments

Comments
 (0)