fix model associations

This commit is contained in:
Bilal Catic
2019-09-30 13:17:27 +02:00
parent 4713e78d51
commit b703d55c06
3 changed files with 15 additions and 21 deletions

View File

@@ -64,11 +64,5 @@ module.exports = (sequelize, DataTypes) => {
}
});
SearchRequest.associate = models => {
SearchRequest.belongsToMany(models.SearchRequestMatch, {
through: "SearchRequestMatch"
});
};
return SearchRequest;
};