Commit 9e7f92ad445f26d7465c441a5f6de3a4637763f3
1 parent
05290c7b
Exists in
master
fix: add sendcloud_response attr
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
lib/sendcloud/deliverer.rb
... | ... | @@ -23,7 +23,7 @@ module Sendcloud |
23 | 23 | options = build_sendcloud_message_for(rails_message) |
24 | 24 | response = sendcloud_client.send_message options |
25 | 25 | # Rails.logger.info("from:#{options[:from]} to:#{options[:to]} res:#{response}") |
26 | - rails_message.api_response = response | |
26 | + rails_message.sendcloud_response = response | |
27 | 27 | if response.code == 200 |
28 | 28 | sendcloud_message_id = JSON.parse(response.to_str)["id"] |
29 | 29 | rails_message.message_id = sendcloud_message_id | ... | ... |