app/models/notify_user/houston.rb in notify_user-0.0.30 vs app/models/notify_user/houston.rb in notify_user-0.1.1

- old
+ new

@@ -80,10 +80,10 @@ if error_index != NO_ERROR device = @devices.at(error_index) Rails.logger.info "Error: #{status} with id: #{error_index}. Token: #{device.token}." # If we encounter the Invalid Token error from APNS, just remove the device: - if status == ERROR_INVALID_TOKEN + if status == INVALID_TOKEN_ERROR Rails.logger.info "Invalid token encountered, removing device. Token: #{device.token}." device.destroy end @devices.slice!(0..error_index) \ No newline at end of file