Browse Source

graph2: Remove CharactersFilter logged property.

1.0
Gisle Aune 6 years ago
parent
commit
8a07c2ffdb
  1. 3
      graph2/schema/types/Character.gql
  2. 5
      models/characters/list.go

3
graph2/schema/types/Character.gql

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

5
models/characters/list.go

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

Loading…
Cancel
Save