Skip to content

Commit

Permalink
order bond inprogress
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Aug 21, 2024
1 parent e1d593b commit ef354da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/dispute_game_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (h DisputeGameHandler) GetBondInProgressPerDays(c *gin.Context) {
res := make([]AmountPerDay, 0)
h.DB.Raw(" select sum(a.bond) amount, DATE_FORMAT(FROM_UNIXTIME(se.block_time),'%Y-%m-%d') date " +
" from game_claim_data a left join sync_events se on a.event_id = se.id" +
" left join dispute_game dg on a.game_contract = dg.game_contract where dg.status=0 group by date order by date desc").Scan(&res)
" left join dispute_game dg on a.game_contract = dg.game_contract where dg.status=0 group by date").Scan(&res)
c.JSON(http.StatusOK, gin.H{
"data": res,
})
Expand Down

0 comments on commit ef354da

Please sign in to comment.