in cloudscript, I wrote below code.
handlers.CalcUserRank = function (args, context) {
var result = server.GetLeaderboard({
StatisticName: "TotalGainedPoint",
StartPosition: 0,
MaxResultsCount: 100
});
var Ranks = result.Data.Leaderboard;
}
than, when I call this function. It throw this Error.
==> TypeError: Cannot read property 'Leaderboard' of undefined
Leaderboard's Name -> Checked.
Leaderboard's contents -> Checked. is exist and i cloud get info through post via post man
is There any I'm missed it? or those are bugs??