diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-12 15:20:41 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-12 15:20:41 +0200 |
| commit | 8ce9983be962e364fcd9755a710b4543a67fe3ff (patch) | |
| tree | 5afdf779aa9787c1a748f49aeb6b9d383c840f05 | |
| parent | fbc2ac2fa52d3d69451787f5ec9ebb0e0657c877 (diff) | |
| download | processor-8ce9983be962e364fcd9755a710b4543a67fe3ff.tar.gz processor-8ce9983be962e364fcd9755a710b4543a67fe3ff.zip | |
map participant series to player series
| -rw-r--r-- | worker.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -74,7 +74,10 @@ function snakeCaseKeys(obj) { model.Hero.findAll() .map((hero) => hero_db_map[hero.name] = hero.id), model.Series.findAll() - .map((series) => series_db_map[series.name] = series.id), + .map((series) => { + if (series.dimension_on == "player") + series_db_map[series.name] = series.id; + }), model.GameMode.findAll() .map((mode) => game_mode_db_map[mode.name] = mode.id), model.Role.findAll() |
