Fixed character filter not being exclusive.

This commit is contained in:
2019-08-15 11:28:02 +02:00
parent ed38d576b2
commit 4bd75b8240
+1 -1
View File
@@ -93,7 +93,7 @@ func (r *logRepository) List(ctx context.Context, filter models.LogFilter) ([]*m
query["open"] = filter.Open query["open"] = filter.Open
} }
if len(filter.Characters) > 0 { if len(filter.Characters) > 0 {
query["characterIds"] = bson.M{"$in": filter.Characters} query["characterIds"] = bson.M{"$all": filter.Characters}
} }
if len(filter.Channels) > 0 { if len(filter.Channels) > 0 {
query["channel"] = bson.M{"$in": filter.Channels} query["channel"] = bson.M{"$in": filter.Channels}