Commit 82d42407 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Allow batch-only leaderboard and tournament score lookups from the runtime.

parent fc230ce7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Add userId field for permission validation in JS/Lua runtimes group update functions.
- Allow standard space characters in usernames.
- Build with Go 1.16.6 release.
- Allow batch-only leaderboard and tournament score lookups from the runtime.

### Fixed
- Fix creator id being read from the wrong argument in JS runtime group update function.
+4 −2
Original line number Diff line number Diff line
@@ -1641,8 +1641,9 @@ func (n *RuntimeGoNakamaModule) LeaderboardRecordsList(ctx context.Context, id s
	var limitWrapper *wrapperspb.Int32Value
	if limit < 0 || limit > 10000 {
		return nil, nil, "", "", errors.New("expects limit to be 0-10000")
	}
	} else if limit > 0 {
		limitWrapper = &wrapperspb.Int32Value{Value: int32(limit)}
	}

	if expiry < 0 {
		return nil, nil, "", "", errors.New("expects expiry to equal or greater than 0")
@@ -1879,8 +1880,9 @@ func (n *RuntimeGoNakamaModule) TournamentRecordsList(ctx context.Context, tourn
	var limitWrapper *wrapperspb.Int32Value
	if limit < 0 || limit > 10000 {
		return nil, nil, "", "", errors.New("expects limit to be 0-10000")
	}
	} else if limit > 0 {
		limitWrapper = &wrapperspb.Int32Value{Value: int32(limit)}
	}

	if overrideExpiry < 0 {
		return nil, nil, "", "", errors.New("expects expiry to equal or greater than 0")