Commit 0861a836 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Correctly list tournament records when the tournament has no end time defined.

parent f1ab88bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Correct Lua runtime decoding of stream identifying parameters.
- Correctly use optional parameters when they are passed to group creation operations.
- Lua runtime operations now observe context cancellation while waiting for an available Lua instance.
- Correctly list tournament records when the tournament has no end time defined.

## [2.2.1] - 2018-11-20
### Added
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ func (s *ApiServer) ListTournamentRecords(ctx context.Context, in *api.ListTourn
		return nil, status.Error(codes.NotFound, "Tournament not found.")
	}

	if tournament.EndTime <= time.Now().UTC().Unix() {
	if tournament.EndTime > 0 && tournament.EndTime <= time.Now().UTC().Unix() {
		return nil, status.Error(codes.NotFound, "Tournament not found or has ended.")
	}