Skip to content

Commit

Permalink
Merge pull request #41 from cryptape/release
Browse files Browse the repository at this point in the history
raise error when result is nil in fix_old task
  • Loading branch information
ashchan authored Sep 27, 2018
2 parents f5dc9ea + 640706b commit 4c9eec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/event_logs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace :event_logs do
task fix_old: :environment do
Transaction.find_each do |t|
receipt = CitaSync::Api.get_transaction_receipt(t.cita_hash)
logs = receipt["result"]["logs"]
logs = receipt.dig "result", "logs"
next if logs.blank?

CitaSync::Persist.save_event_logs(logs)
Expand Down

0 comments on commit 4c9eec1

Please sign in to comment.