Regression fix: filter Modrinth search results by game versions

This commit is contained in:
comp500 2023-03-10 16:47:18 +00:00
parent 58bb2ae4cf
commit da04eb7f13

View File

@ -38,9 +38,10 @@ func getProjectIdsViaSearch(query string, versions []string) ([]*modrinthApi.Sea
} }
res, err := mrDefaultClient.Projects.Search(&modrinthApi.SearchOptions{ res, err := mrDefaultClient.Projects.Search(&modrinthApi.SearchOptions{
Limit: 5, Limit: 5,
Index: "relevance", Index: "relevance",
Query: query, Facets: [][]string{facets},
Query: query,
}) })
if err != nil { if err != nil {