|
|
@ -12,7 +12,6 @@ type Filter struct { |
|
|
|
Names []string `json:"names"` |
|
|
|
Author *string `json:"author"` |
|
|
|
Search *string `json:"search"` |
|
|
|
Logged *bool `json:"logged"` |
|
|
|
} |
|
|
|
|
|
|
|
// List lists all characters
|
|
|
@ -44,10 +43,6 @@ func List(filter *Filter) ([]models.Character, error) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if filter.Logged != nil { |
|
|
|
query["logged"] = *filter.Logged |
|
|
|
} |
|
|
|
|
|
|
|
if filter.Author != nil { |
|
|
|
query["author"] = *filter.Author |
|
|
|
} |
|
|
|