Browse Source

Fixed character filter not being exclusive.

thegreatrefactor
Gisle Aune 5 years ago
parent
commit
4bd75b8240
  1. 2
      database/mongodb/logs.go

2
database/mongodb/logs.go

@ -93,7 +93,7 @@ func (r *logRepository) List(ctx context.Context, filter models.LogFilter) ([]*m
query["open"] = filter.Open
}
if len(filter.Characters) > 0 {
query["characterIds"] = bson.M{"$in": filter.Characters}
query["characterIds"] = bson.M{"$all": filter.Characters}
}
if len(filter.Channels) > 0 {
query["channel"] = bson.M{"$in": filter.Channels}

Loading…
Cancel
Save