deprem-yardim-backend-go
deprem-yardim-backend-go copied to clipboard
bug: For provision aid and confirmed option the incoming data is empty except all times
Error Description
For confirmed and provision aid options, the data for last 24 hours is not being sent. Right now isn't there any data, can you check?
-- Add this info: discord username: cccececcc#4824
Error Environment
afetharita.com
Describe how you got the error step by step
Notifications/ Provision Aid & Confirmed Notifications/ Last 24 hours and previous
Expected Behaviour
Data displayed on map
Screenshots
Desktop Environment
- Operating System: Windows 11
- Browser Chrome
- Version 109.0.5414.120
Hi, now all our content is in English. I will activate it again when you make the translation.
think about this
hi
i think the major problem with this issue is not related with the code itself but database records. for "live aid" filter sends reason key as "erzak" value. but as far i see, these record timestamp values somehow have been set to a fixed value to 1675966352
which is equal to February 9, 2023 9:12:32, as of 2/12/2023 3:23 AM (right now) means "2 days ago"
that means these records gets only when you supply timestamp value older than February 9, 2023 9:12:32. if you supply newer date timestamp for example last 24 hours, it won't work. that explains why these records can be seen on "all the times" or last 3 days conditions. actually "all the times" simply sets a year ago from now. so any timestamp value older than Feb 9 meets epoch >= timestamp
condition.
above all also valid for "confirmed" section. i didn't check but probably these fields somehow left as its default value or something.
thanks for your hard work.