Permalink
Browse files

changed the feedback to use the right field

  • Loading branch information...
1 parent 9f27abf commit cb9e6f3f73dbe163872a9f5f490b5e7a14730b0c @coneybeare committed Apr 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/apn_on_rails/app/models/apn/app.rb
@@ -147,11 +147,11 @@ def self.process_devices
def self.process_devices_for_cert(the_cert)
puts "in APN::App.process_devices_for_cert"
APN::Feedback.devices(the_cert).each do |device|
- if device.last_registered_at < device.feedback_at
- puts "device #{device.id} -> #{device.last_registered_at} < #{device.feedback_at}"
+ if device.updated_at < device.feedback_at
+ puts "device #{device.id} -> #{device.updated_at} < #{device.feedback_at}"
device.destroy
- else
- puts "device #{device.id} -> #{device.last_registered_at} not < #{device.feedback_at}"
+ else
+ puts "device #{device.id} -> #{device.updated_at} not < #{device.feedback_at}"
end
end
end

0 comments on commit cb9e6f3

Please sign in to comment.