lib/push/receipts.rb in expo-server-sdk-0.1.0 vs lib/push/receipts.rb in expo-server-sdk-0.1.1
- old
+ new
@@ -68,11 +68,11 @@
self.results = results
self.requested_ids = requested_ids
end
def each
- receipts.each do |receipt|
+ results.each do |receipt|
next unless receipt.ok?
yield receipt
end
end
@@ -85,10 +85,10 @@
yield receipt
end
end
def unresolved_ids
- requested_ids - results.keys
+ requested_ids - results.map(&:receipt_id)
end
private
attr_accessor :results, :requested_ids