diff --git a/api/app/lib/models/salePerformance.js b/api/app/lib/models/salePerformance.js index c987425..24262e2 100644 --- a/api/app/lib/models/salePerformance.js +++ b/api/app/lib/models/salePerformance.js @@ -56,7 +56,8 @@ module.exports = dc => { tableName: "sale_performance", }); const { sale } = dc.models; - sale.hasMany(salePerformance, { foreighKey: 'saleName', targetKey: "sale" }) + + sale.hasMany(salePerformance, { foreignKey: 'saleName', sourceKey: "sale" }) dc.models.salePerformance = salePerformance; return salePerformance;