@@ -38,9 +38,6 @@ input CharactersFilter {
|
|||||||
|
|
||||||
# Filter by text search matching against the character's description
|
# Filter by text search matching against the character's description
|
||||||
search: String
|
search: String
|
||||||
|
|
||||||
# Filter by whether they've been part of a log.
|
|
||||||
logged: Boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Input for adding characters
|
# Input for adding characters
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ type Filter struct {
|
|||||||
Names []string `json:"names"`
|
Names []string `json:"names"`
|
||||||
Author *string `json:"author"`
|
Author *string `json:"author"`
|
||||||
Search *string `json:"search"`
|
Search *string `json:"search"`
|
||||||
Logged *bool `json:"logged"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// List lists all characters
|
// 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 {
|
if filter.Author != nil {
|
||||||
query["author"] = *filter.Author
|
query["author"] = *filter.Author
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user