Prior to the migration to new donation structure, bank donations had only date of transaction, and not hours, due to the response coming from IRIS, containing only a date.
This has resulted in an edge-case, where some donation, were skipped, due to the pagination and order. A hacky solution was used by ordering donations via updatedAt property, but this has caused more troubles than fixing issues, as we need to ensure that updatedAt property is not updating on every update query.
The goal of this commit is to:
Order public donations by createdAt property.
Run migration script, which sets random hours, minutes, seconds and miliseconds, to current createdAt field, without touching the date.
Prior to the migration to new donation structure, bank donations had only date of transaction, and not hours, due to the response coming from IRIS, containing only a date. This has resulted in an edge-case, where some donation, were skipped, due to the pagination and order. A hacky solution was used by ordering donations via updatedAt property, but this has caused more troubles than fixing issues, as we need to ensure that updatedAt property is not updating on every update query.
The goal of this commit is to: