Skip to content

Commit

Permalink
DigixGlobal#70 rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
bshevchenko committed Sep 4, 2019
1 parent 5b144d3 commit 5fe0550
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 220 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ end
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

gem 'eth'
gem 'web3-eth'
gem 'newrelic_rpm'
gem 'web3-eth'

gem 'sanitize', '~> 5.0'
2 changes: 1 addition & 1 deletion app/graphql/mutations/resend_transaction_mutation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def resolve(id:, transaction_object:, signed_transaction:)
model_result(key, tx_or_errors)
end
rescue ActiveRecord::RecordNotFound
return form_error(key, 'transaction_object', 'Previous transaction not found')
form_error(key, 'transaction_object', 'Previous transaction not found')
end

def self.authorized?(object, context)
Expand Down
6 changes: 2 additions & 4 deletions app/models/watching_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class WatchingTransaction < ApplicationRecord
def set_uuid
self.id = SecureRandom.uuid

unless self.group_id
self.group_id = self.id
end
self.group_id = id unless group_id
end

def txhash=(value)
Expand Down Expand Up @@ -65,7 +63,7 @@ def resend # For 5 minute cron job
end
end

if data['blockNumber'] != nil
unless data['blockNumber'].nil?
WatchingTransaction.find_by(group_id: tx.group_id).destroy
end
end
Expand Down

0 comments on commit 5fe0550

Please sign in to comment.