summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-13 17:33:34 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-13 17:33:34 +0200
commit8a2c918e332d5d19b312bf3fd9672cc4d3cdce4b (patch)
tree83977b98bcfe97b7fe5c5977f4ad225a44e66771 /worker.js
parent836dfe426c5681c68995d825e67305e8d09536ca (diff)
downloadshrinker-8a2c918e332d5d19b312bf3fd9672cc4d3cdce4b.tar.gz
shrinker-8a2c918e332d5d19b312bf3fd9672cc4d3cdce4b.zip
fix patch association
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 1c039cc..ac07c19 100644
--- a/worker.js
+++ b/worker.js
@@ -418,7 +418,7 @@ function snakeCaseKeys(obj) {
// (Sayoc = Taka)
p.hero_id = hero_db_map[hero_name_map[participant.actor]];
// TODO don't hardcode this, waiting for `match.patch_version` to be available
- if (p_s.created_at < new Date(2017, 3, 28))
+ if (p_s.created_at < new Date("2017-03-28"))
p.series_id = series_db_map["Patch 2.2"];
else
p.series_id = series_db_map["Patch 2.3"];