-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate body req of webhook and make tagUser optional (#274)
This PR adds a simple validation on the request body of discord's webhook and makes `tagUser` param optional. I've made it default to `"0"` because I'm assuming n8n sends `"0"` since there's a check for that, but if that's not the case we could change this just to check if the value is a string, to not blow up while calling `.split` which I've also changed the placement, bc `memberIds` was not used anywhere else, so it makes more sense to move it. Also it updates the admin list. Not sure why tests are failing, seems a port issue, maybe it's the worker ?
- Loading branch information
Showing
2 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters