Skip to content
Snippets Groups Projects
Commit 1ccf7c4b authored by Gabriel Engel's avatar Gabriel Engel
Browse files

added JSON.parse

parent dc04944d
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ Api = new Restivus
payloadIsWrapped = @bodyParams?.payload? and payloadKeys.length == 1
if payloadIsWrapped and @request.headers['content-type'] is 'application/x-www-form-urlencoded'
@bodyParams = @bodyParams.payload
@bodyParams = JSON.parse @bodyParams.payload
@integration = RocketChat.models.Integrations.findOne
_id: @request.params.integrationId
......
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