Skip to content
Snippets Groups Projects
Commit 13549d96 authored by bruno-rocha-movile's avatar bruno-rocha-movile
Browse files

Fixed crash if a webhook payload had a field named "payload"

parent 43e88dee
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,6 @@ Api = new Restivus
apiPath: 'hooks/'
auth:
user: ->
if @bodyParams?.payload?
@bodyParams = JSON.parse @bodyParams.payload
@integration = RocketChat.models.Integrations.findOne
_id: @request.params.integrationId
token: decodeURIComponent @request.params.token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment