class Paragraphs::DropboxApiCheckFaradayMiddleware

Public Instance Methods

on_complete(env) click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 161
def on_complete(env)
  if env.body.empty?
    tweet_to(
      'dropboxsupport',
      """
        Failuer of Dropbox Business API
        ruby environment
        running on #{'https://jeste-data.herokuapp.com'}
        #{env.inspect}
      """
    )
    Paragraphs.report_paragraph_infraction(ASSERT_NO_DROPBOX_API_ERRORS)
  end
end