Open HendX opened 4 years ago
I've just been experimenting with this app and I noticed the since parameter being ignored:
since
https://example.com/api/infected?since=2020-05-03T02:21:44Z
Steps:
SubmitFakeKeys
The way the iOS app works is that it saves the date received in the response and uses that for the next request.
I noticed on each subsequent request I'm receiving back the same date.
I suspect the issue is in infected_keys_controller.rb in the @updated_at parameter. I think instead of:
infected_keys_controller.rb
@updated_at
@updated_at = submissions.first&.updated_at || Time.current
It should be:
@updated_at = Time.current
I've just been experimenting with this app and I noticed the
since
parameter being ignored:https://example.com/api/infected?since=2020-05-03T02:21:44Z
Steps:
SubmitFakeKeys
command-line script I builtThe way the iOS app works is that it saves the date received in the response and uses that for the next request.
I noticed on each subsequent request I'm receiving back the same date.
I suspect the issue is in
infected_keys_controller.rb
in the@updated_at
parameter. I think instead of:It should be: