Two issues.
-
Calling
let list = this.nk.leaderboardRecordsList( this.leaderboardId );
results in the following error:
rpc error: code = Internal desc = TypeError: expects an array of owner ids or null at github.com/heroiclabs/nakama/v3/server.(*runtimeJavascriptNakamaModule).leaderboardRecordsList.func1 (native)
- The documentation indicates that the owner ids list is optional.
- We can’t pass null (it is not accepted, only an array or
undefined
)
-
Calling
let list = this.nk.leaderboardRecordsList( this.leaderboardId, ["00000000-0000-0000-0000-000000000000"] );
returns zero records in eitherlist.records
orlist.ownerRecords
. Below is a screenshot of the leaderboard record I’m trying to access.
Halp?
- Versions: Nakama {3.5}, Mac Docker},
- Server Framework Runtime language (If relevant): Typescript