Skip to content

Commit 88b6d4a

Browse files
fix(client): cast to raw message when converting to params
1 parent 004e060 commit 88b6d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schedule.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package carbonaware
44

55
import (
66
"context"
7+
"encoding/json"
78
"net/http"
89
"time"
910

@@ -86,7 +87,7 @@ func (r *CloudZone) UnmarshalJSON(data []byte) error {
8687
// be used at the last possible moment before sending a request. Test for this with
8788
// CloudZoneParam.Overrides()
8889
func (r CloudZone) ToParam() CloudZoneParam {
89-
return param.Override[CloudZoneParam](r.RawJSON())
90+
return param.Override[CloudZoneParam](json.RawMessage(r.RawJSON()))
9091
}
9192

9293
type CloudZoneProvider string

0 commit comments

Comments
 (0)