ad AS to DB query
This commit is contained in:
@@ -45,7 +45,8 @@ module.exports = (sequelize, DataTypes) => {
|
||||
|
||||
SearchRequestMatch.associate = models => {
|
||||
SearchRequestMatch.hasMany(models.RealEstate, {
|
||||
foreignKey: "id"
|
||||
foreignKey: "id",
|
||||
as: "realEstates"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user