Meteor's Leaderboardの例を試しています。プレイヤーのスコアをランダム化しようとする際にバグに遭遇しています。Meteorコレクションアップデートのハンティングバグ
私が打ってるの例外は、関連するコードは次のようになりますException while simulating the effect of invoking '/players/update' undefined
です:私はここでかなり愚かな何かをやっている感覚を得る
'click input.randomize_scores': function() {
Players.find().forEach(function (player) {
random_score = Math.floor(Math.random()*10)*5;
Players.update(player, {$set: {score: random_score}})
});
}
Full leaderboard.js contents here
。私は本当にポインタを感謝します。
。 –