|
@ -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} |
|
|