diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-28 13:19:11 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-28 13:19:11 +0200 |
| commit | a03537c059e3da0ce547d0e0913b1d10018c24df (patch) | |
| tree | 7322b4674559b3d6215cc9a912778146a1009120 | |
| parent | cee339e514bbafbca0779e370bfb480a24f53beb (diff) | |
| download | orm-release/2.4.0.tar.gz orm-release/2.4.0.zip | |
participant has one p_srelease/2.4.0
| -rw-r--r-- | model.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ module.exports = (seq, Seq) => { Participant.belongsTo(Roster, { foreignKey: "roster_api_id", targetKey: "api_id" }); Participant.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); Participant.belongsTo(Player, { foreignKey: "player_api_id", targetKey: "api_id" }); - Participant.hasMany(ParticipantStats, { as: "participant_stats", foreignKey: "participant_api_id", sourceKey: "api_id" }); + Participant.hasOne(ParticipantStats, { as: "participant_stats", foreignKey: "participant_api_id", sourceKey: "api_id" }); /* Participant.belongsTo(GameMode, { foreignKey: "game_mode_id" }); Participant.belongsTo(Hero, { foreignKey: "hero_id" }); |
