summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvainsocial <vainsocial@vainsocial>2017-06-20 08:50:36 +0000
committervainsocial <vainsocial@vainsocial>2017-06-20 08:50:36 +0000
commit3c591cc6dc538f313daa52c29b3af8ba7f9d53a3 (patch)
treed66bd6023651d32d6808f302435a65ea12e3eeb6
parent86e7ba6711535181ca6b7602c9ddbb2b6d0d9dd7 (diff)
downloadprocessor-3c591cc6dc538f313daa52c29b3af8ba7f9d53a3.tar.gz
processor-3c591cc6dc538f313daa52c29b3af8ba7f9d53a3.zip
hotfix broken duplicaterelease/2.7.0
-rw-r--r--worker.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 971e24b..de25f63 100644
--- a/worker.js
+++ b/worker.js
@@ -247,6 +247,7 @@ function flatten(obj) {
{ name: player.name, region: player.shard_id });
const duplicate = player_records_direct.find((pr) =>
pr.api_id == player.api_id);
+ if (duplicate == undefined) return; // TODO wtf???
if (duplicate.created_at < player.created_at) {
// replace by newer one as below
player_records_direct.splice(