Skip to content

Commit

Permalink
Allow tournaments to be created in the future with no end time.
Browse files Browse the repository at this point in the history
  • Loading branch information
novabyte committed Nov 20, 2018
1 parent a1d9008 commit 8d98a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/runtime_go_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ func (n *RuntimeGoNakamaModule) TournamentCreate(ctx context.Context, id string,
if endTime < 0 {
return errors.New("endTime must be >= 0")
}
if endTime < startTime {
if endTime != 0 && endTime < startTime {
return errors.New("endTime must be >= startTime")
}
if duration < 0 {
Expand Down

0 comments on commit 8d98a41

Please sign in to comment.