Skip to content

Commit

Permalink
Rollup Start of day fix (#497)
Browse files Browse the repository at this point in the history
* add start of day

* add tmp fix

* tmp delete then insert, removing after testing

* rollback testing changes

* Remove unneeded line

* Add missing changelog entry, remove unused import
  • Loading branch information
nullpointer0x00 authored Oct 30, 2023
1 parent 64e8b2c commit 925ad9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

## Unreleased

### Improvements
* Add aggregation of orderbooks for hash historical pricing [#496](https://github.com/provenance-io/explorer-service/issues/496)


## [v5.6.0](https://github.com/provenance-io/explorer-service/releases/tag/v5.6.0) - 2023-07-05
### Release Name: Niels Peter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class AsyncService(
var startDate = today.minusMonths(1)
val latest = TokenHistoricalDailyRecord.getLatestDateEntry()
if (latest != null) {
startDate = latest.timestamp.minusDays(1)
startDate = latest.timestamp.minusDays(1).startOfDay()
}
val dlobRes = tokenService.getHistoricalFromDlob(startDate) ?: return
logger.info("Updating token historical data starting from $startDate with ${dlobRes.buy.size} buy records for roll-up.")
Expand Down

0 comments on commit 925ad9d

Please sign in to comment.