From bb9fd61545b3b9d0adee2dc5dc151b0de0f022f5 Mon Sep 17 00:00:00 2001 From: Aleksei Iakovlev Date: Thu, 14 Mar 2024 12:40:43 +0800 Subject: [PATCH] fix origin groups scheme: using a proper use_next field in json --- origingroups/origingroups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/origingroups/origingroups.go b/origingroups/origingroups.go index 72c803d..0cbae58 100644 --- a/origingroups/origingroups.go +++ b/origingroups/origingroups.go @@ -13,7 +13,7 @@ type OriginGroupService interface { type GroupRequest struct { Name string `json:"name"` - UseNext bool `json:"useNext"` + UseNext bool `json:"use_next"` Sources []SourceRequest `json:"sources"` } @@ -26,7 +26,7 @@ type SourceRequest struct { type OriginGroup struct { ID int64 `json:"id"` Name string `json:"name"` - UseNext bool `json:"useNext"` + UseNext bool `json:"use_next"` Sources []Source `json:"sources"` }