diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-08 22:49:02 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-08 22:49:02 +0200 |
| commit | 60da1e98c13664170ddd32449bc005a55f4f39ef (patch) | |
| tree | 81b16b0920816bf7dddaf77a43ffed476d968323 | |
| parent | 0ea2b4455a94e4e3cdc85f669e05832428e98d10 (diff) | |
| download | processor-60da1e98c13664170ddd32449bc005a55f4f39ef.tar.gz processor-60da1e98c13664170ddd32449bc005a55f4f39ef.zip | |
link correct series in participant
| -rw-r--r-- | worker.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -340,7 +340,10 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI, // (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 - p.series_id = series_db_map["Patch 2.3"]; + if (p_s.created_at < new Date(2017, 3, 28)) + p.series_id = series_db_map["Patch 2.2"]; + else + p.series_id = series_db_map["Patch 2.3"]; p.game_mode_id = game_mode_db_map[match.game_mode]; p.role_id = series_db_map["all"]; // TODO identify roles |
