Commit 8d98a410 authored by Chris Molozian's avatar Chris Molozian
Browse files

Allow tournaments to be created in the future with no end time.

parent a1d9008d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {