Skip to content

Commit

Permalink
fix: remove reference to public from query
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Van Ootegem <[email protected]>
  • Loading branch information
EVODelavega committed Sep 6, 2024
1 parent ac73a65 commit fd06a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanode/sqlstore/volume_discount_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *VolumeDiscountStats) Add(ctx context.Context, stats *entities.VolumeDis
}

func (s *VolumeDiscountStats) LatestStats(ctx context.Context, partyID string) (entities.VolumeDiscountStats, error) {
query := `SELECT * FROM public.volume_discount_stats WHERE
query := `SELECT * FROM volume_discount_stats WHERE
at_epoch = (SELECT id - 1 from current_epochs ORDER BY id DESC, vega_time DESC FETCH FIRST ROW ONLY) AND
EXISTS (SELECT TRUE FROM jsonb_array_elements(parties_volume_discount_stats) ps WHERE ps->>'party_id' = '$1')`
ent := []entities.VolumeDiscountStats{}
Expand Down

0 comments on commit fd06a97

Please sign in to comment.