summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-21 12:20:40 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-21 12:20:40 +0200
commitc138842b31bac9bbbaa51d285a275e239a11ce8b (patch)
tree95646a86fa59337fbcb38ffa5118004b743cc9d4
parent3377d777bd9278581eb2e3508b3229aa5521edb7 (diff)
downloadshrinker-c138842b31bac9bbbaa51d285a275e239a11ce8b.tar.gz
shrinker-c138842b31bac9bbbaa51d285a275e239a11ce8b.zip
fuck fuck fuck fuck
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 44236f1..4f59088 100644
--- a/worker.js
+++ b/worker.js
@@ -228,7 +228,7 @@ function flatten(obj) {
// when player objects end up in the same batch
const duplicate = player_records_direct.find(
(pr) => pr.api_id == player.api_id);
- if (duplicate) {
+ if (duplicate == undefined) {
logger.error("duplicate disappeared! please investigate, ignoring for now…");
return;
}