Skip to content

Commit

Permalink
fix material filter
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Jan 13, 2024
1 parent bb7e6e9 commit f11e297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/item/kind_tacticalRig.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (f *TacticalRigFilter) Filter() bson.D {

if f.ArmorMaterial != nil {
filters = append(filters, bson.M{
"armorComponents": bson.M{"$elemMatch": bson.M{"material": *f.ArmorMaterial}},
"armorComponents": bson.M{"$elemMatch": bson.M{"material.name": *f.ArmorMaterial}},
})
}

Expand Down

0 comments on commit f11e297

Please sign in to comment.