Skip to content

Commit ccd12f9

Browse files
author
NarrowsProjects
committed
queryBuilder fix
1 parent 8cf18bf commit ccd12f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/database/utilities/QueryBuilder.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,10 +715,11 @@ class QueryBuilder {
715715
*
716716
* @param {string} association The target association.
717717
* @param {string} column The target column.
718+
* @param {boolean} required If the association must exist.
718719
* @returns {WhereAssociationQueryBuilder} The current QueryBuilder instance.
719720
*/
720-
whereAssociation(association, column) {
721-
return new WhereAssociationQueryBuilder(this._sequelize, this, association, column);
721+
whereAssociation(association, column, required) {
722+
return new WhereAssociationQueryBuilder(this._sequelize, this, association, column, required);
722723
}
723724
}
724725

0 commit comments

Comments
 (0)