Skip to content

Commit bd91f5f

Browse files
authored
chore: remove redundant type assertion (#97)
1 parent cf18192 commit bd91f5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/model/attributes/relations/BelongsTo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class BelongsTo extends Relation {
6565
* Set the constraints for an eager load of the relation.
6666
*/
6767
addEagerConstraints(query: Query, models: Collection): void {
68-
query.whereIn(this.ownerKey as any, this.getEagerModelKeys(models))
68+
query.whereIn(this.ownerKey, this.getEagerModelKeys(models))
6969
}
7070

7171
/**

src/model/attributes/relations/HasMany.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class HasMany extends Relation {
5555
* Set the constraints for an eager load of the relation.
5656
*/
5757
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))
5959
}
6060

6161
/**

src/model/attributes/relations/HasOne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class HasOne extends Relation {
5555
* Set the constraints for an eager load of the relation.
5656
*/
5757
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))
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)