diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 11:43:45 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 11:43:45 +0200 |
| commit | 3a578534976701a2f210bd626ffd17b30d753045 (patch) | |
| tree | cce1fd9d43976ebfb4489b8608d4074cf95b5b1d /worker.js | |
| parent | 26246829e62b5e7ff1c02b7c6526ece5deaabc2e (diff) | |
| download | processor-3a578534976701a2f210bd626ffd17b30d753045.tar.gz processor-3a578534976701a2f210bd626ffd17b30d753045.zip | |
fix duplicate player filtering
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -278,7 +278,7 @@ function snakeCaseKeys(obj) { // deduplicate player // in a batch, it is very likely that players are duplicated // so this improves performance a bit - if (processed_players.indexOf(p.player.api_id)) { + if (processed_players.indexOf(p.player.api_id) == -1) { processed_players.push(p.player.api_id); player_records.push(p.player); notify_players.push(p.player); |
