summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-08-21 21:05:53 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-08-21 21:05:53 +0200
commit50181b5b105c9f13d81dd433a3b48eea16be88c6 (patch)
treed5e4346d886046e32d4330d9da5a8832773371ea
parent34f082959a1a747464f921f89a878111bb59634f (diff)
downloadorm-50181b5b105c9f13d81dd433a3b48eea16be88c6.tar.gz
orm-50181b5b105c9f13d81dd433a3b48eea16be88c6.zip
rename HeroBan and HeroPick to camel case
-rw-r--r--model.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.js b/model.js
index ee29d4c..c227af0 100644
--- a/model.js
+++ b/model.js
@@ -53,8 +53,8 @@ module.exports = (seq, Seq) => {
Participant.hasMany(ParticipantItems, { foreignKey: "participant_api_id", sourceKey: "api_id" });
Participant.hasMany(ParticipantPhases, { foreignKey: "participant_api_id", sourceKey: "api_id" });
ParticipantPhases.belongsTo(Participant, { foreignKey: "participant_api_id", targetKey: "api_id" });
- ParticipantPhases.hasMany(Hero, { foreignKey: "id", sourceKey: "ban", as: "HeroBan" });
- ParticipantPhases.hasMany(Hero, { foreignKey: "id", sourceKey: "pick", as: "HeroPick" });
+ ParticipantPhases.hasMany(Hero, { foreignKey: "id", sourceKey: "ban", as: "hero_ban" });
+ ParticipantPhases.hasMany(Hero, { foreignKey: "id", sourceKey: "pick", as: "hero_pick" });
Participant.belongsTo(GameMode, { foreignKey: "game_mode_id" });
Participant.belongsTo(Hero, { foreignKey: "hero_id" });
Participant.belongsTo(Series, { foreignKey: "series_id" });