Skip to content

Commit 8eaac00

Browse files
committed
Revert accidental change
1 parent 839050f commit 8eaac00

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/provider/models/reverse_etl_model.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package models
22

33
import (
4-
"encoding/json"
5-
"errors"
6-
74
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
85
"github.com/hashicorp/terraform-plugin-framework/types"
96
"github.com/segmentio/public-api-sdk-go/api"
@@ -48,8 +45,7 @@ func GetScheduleConfig(scheduleConfig api.NullableScheduleConfig) (jsontypes.Nor
4845
return jsontypes.NewNormalizedNull(), nil
4946
}
5047

51-
jsonScheduleConfigString, err := json.Marshal(scheduleConfig)
52-
return jsontypes.NewNormalizedNull(), errors.New(string(jsonScheduleConfigString))
48+
jsonScheduleConfigString, err := scheduleConfig.Get().MarshalJSON()
5349
if err != nil {
5450
return jsontypes.NewNormalizedNull(), err
5551
}

0 commit comments

Comments
 (0)