summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}