File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/model/attributes/relations Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class BelongsTo extends Relation {
65
65
* Set the constraints for an eager load of the relation.
66
66
*/
67
67
addEagerConstraints ( query : Query , models : Collection ) : void {
68
- query . whereIn ( this . ownerKey as any , this . getEagerModelKeys ( models ) )
68
+ query . whereIn ( this . ownerKey , this . getEagerModelKeys ( models ) )
69
69
}
70
70
71
71
/**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class HasMany extends Relation {
55
55
* Set the constraints for an eager load of the relation.
56
56
*/
57
57
addEagerConstraints ( query : Query , models : Collection ) : void {
58
- query . whereIn ( this . foreignKey as any , this . getKeys ( models , this . localKey ) )
58
+ query . whereIn ( this . foreignKey , this . getKeys ( models , this . localKey ) )
59
59
}
60
60
61
61
/**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class HasOne extends Relation {
55
55
* Set the constraints for an eager load of the relation.
56
56
*/
57
57
addEagerConstraints ( query : Query , models : Collection ) : void {
58
- query . whereIn ( this . foreignKey as any , this . getKeys ( models , this . localKey ) )
58
+ query . whereIn ( this . foreignKey , this . getKeys ( models , this . localKey ) )
59
59
}
60
60
61
61
/**
You can’t perform that action at this time.
0 commit comments