Replace `render nothing: true` with a JSON response. This has the added benefit of showing a “loading” message (#12)
render:nothing was producing an error 500 for some reason
This commit is contained in:
parent
b69abe3913
commit
5f555849e5
|
@ -98,7 +98,7 @@ module DiscourseChat::Provider::SlackProvider
|
|||
json = JSON.parse(params[:payload], symbolize_names: true)
|
||||
process_interactive(json)
|
||||
|
||||
render nothing: true, status: 200
|
||||
render json: { text: I18n.t("chat_integration.provider.slack.transcript.loading") }
|
||||
end
|
||||
|
||||
def process_interactive(json)
|
||||
|
|
Loading…
Reference in New Issue