Fixed character filter not being exclusive.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user