Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor refactoring: renamed variable to be more meaningful. ('line' =>…

… 'email')
  • Loading branch information...
commit 6a70da650c90e45901f34e6831668c5df1772242 1 parent 3f62c36
Mark Steckel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/workers/unsubscribes_worker.rb
6 app/workers/unsubscribes_worker.rb
View
@@ -1,13 +1,13 @@
class UnsubscribesWorker
include Sidekiq::Worker
- def perform(line, batch_key)
+ def perform(email, batch_key)
REDIS.incr "#{batch_key}.seen_lines"
- member = Member.lookup(line).first
+ member = Member.lookup(email).first
if member
REDIS.incr "#{batch_key}.members"
- u = Unsubscribe.new(email: line, member: member, cause: 'uploaded')
+ u = Unsubscribe.new(email: email, member: member, cause: 'uploaded')
REDIS.incr "#{batch_key}.unsubscribes" if u.save
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.