Skip to content

Commit

Permalink
Merge pull request #1442 from multiversx/SERVICES-2548-fix-timescaled…
Browse files Browse the repository at this point in the history
…b-query-for-fetching-all-series-start-date

[SERVICES-2548] Fix timescaledb query for fetching all series start date
  • Loading branch information
claudiulataretu authored Aug 14, 2024
2 parents f190f21 + 73f97a5 commit a784b53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ export class TimescaleDBQueryService implements AnalyticsQueryInterface {
}

private async allStartDatesRaw(): Promise<object> {
const startDateRows = await this.dexAnalytics
const startDateRows = await this.closeDaily
.createQueryBuilder()
.select('series')
.addSelect('min(timestamp) as earliest_timestamp')
.addSelect('min(time) as earliest_timestamp')
.groupBy('series')
.getRawMany();

Expand Down

0 comments on commit a784b53

Please sign in to comment.