Skip to content

Commit 25a65c0

Browse files
committed
Allow struct to properly parse array
1 parent b98640b commit 25a65c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/elasticsearch_mapsets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
type ElasticMapsetSearchOptions struct {
2020
Search string `form:"search" json:"search"`
21-
RankedStatus []enums.RankedStatus `form:"ranked_status" json:"ranked_status"`
22-
Mode []enums.GameMode `form:"mode" json:"mode"`
21+
RankedStatus []enums.RankedStatus `form:"ranked_status[]" json:"ranked_status"`
22+
Mode []enums.GameMode `form:"mode[]" json:"mode"`
2323
Page int `form:"page" json:"page"`
2424
Limit int `form:"limit" json:"limit"`
2525

0 commit comments

Comments
 (0)