Skip to content

Commit 9004826

Browse files
authored
fix: remove total number of webhook limit (#842)
Ref: HDX-1773
1 parent ccdb881 commit 9004826

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.changeset/fair-kangaroos-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperdx/api": patch
3+
---
4+
5+
fix: remove total number of webhook limit

packages/api/src/routers/api/webhooks.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ router.post(
5858
}
5959
const { name, service, url, description, queryParams, headers, body } =
6060
req.body;
61-
const totalWebhooks = await Webhook.countDocuments({
62-
team: teamId,
63-
service,
64-
});
65-
if (totalWebhooks >= 5) {
66-
return res.status(400).json({
67-
message: 'You can only have 5 webhooks per team per service',
68-
});
69-
}
7061
if (await Webhook.findOne({ team: teamId, service, url })) {
7162
return res.status(400).json({
7263
message: 'Webhook already exists',

0 commit comments

Comments
 (0)