Skip to content

Commit

Permalink
add revers for events
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Jul 17, 2023
1 parent 7acfe08 commit fd6b6fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/api/event_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (h Handler) GetEventsByAccount(ctx context.Context, params oas.GetEventsByA
if account.ToRaw() == "0:2cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb" {
events = slices.Insert(events, 0, generateTestEvent())
}
for i, j := 0, len(events)-1; i < j; i, j = i+1, j-1 {
events[i], events[j] = events[j], events[i]
}
return &oas.AccountEvents{Events: events, NextFrom: int64(lastLT)}, nil
}

Expand Down

0 comments on commit fd6b6fb

Please sign in to comment.