podkrepi-bg / api

Nest.js REST backend for charity platform Podkrepi.bg https://podkrepi.bg/swagger
https://podkrepi.bg
MIT License
82 stars 43 forks source link

src/donations: Order public donations by createdAt property #620

Closed sashko9807 closed 5 months ago

sashko9807 commented 5 months ago

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:

github-actions[bot] commented 5 months ago

✅ Tests will run for this PR. Once they succeed it can be merged.