Skip to content

Commit

Permalink
fix no found categories
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Dec 1, 2024
1 parent db67cf8 commit aac871e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ func SearchAllIndices(w http.ResponseWriter, r *http.Request) {
return
}

var items []ApiAllSearchResultScore
items := make([]ApiAllSearchResultScore, 0)
for _, hit := range searchResp.Hits {
indexed := hit.(map[string]interface{})
//stuffType := indexed["stuff_type"].(map[string]interface{})["name_id"].(string)
Expand Down Expand Up @@ -1236,7 +1236,7 @@ func SearchAllIndices(w http.ResponseWriter, r *http.Request) {
return
}

var sets []ApiAllSearchResultScore
sets := make([]ApiAllSearchResultScore, 0)
for _, hit := range searchResp.Hits {
indexed := hit.(map[string]interface{})

Expand Down Expand Up @@ -1312,7 +1312,7 @@ func SearchAllIndices(w http.ResponseWriter, r *http.Request) {
return
}

var mounts []ApiAllSearchResultScore
mounts := make([]ApiAllSearchResultScore, 0)
for _, hit := range searchResp.Hits {
indexed := hit.(map[string]interface{})

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
)

var (
DoduapiMajor = 1 // Major version also used for prefixing API routes.
DoduapiVersion = fmt.Sprintf("v%d.0.0-rc.9", DoduapiMajor) // change with every release
DoduapiMajor = 1 // Major version also used for prefixing API routes.
DoduapiVersion = fmt.Sprintf("v%d.0.0-rc.10", DoduapiMajor) // change with every release
DoduapiShort = "doduapi - Open Dofus Encyclopedia API"
DoduapiLong = ""
DoduapiVersionHelp = DoduapiShort + "\n" + DoduapiVersion + "\nhttps://github.com/dofusdude/doduapi"
Expand Down

0 comments on commit aac871e

Please sign in to comment.