Skip to content

Commit 839050f

Browse files
committed
Update changelog
1 parent bc8df2f commit 839050f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.1.0 (August 20, 2024)
2+
Stops connecting newly created sources and warehouses by default.
3+
14
## 1.0.5 (August 12, 2024)
25
Fixes a bug where user groups could not be cleared.
36

internal/provider/models/reverse_etl_model.go

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

33
import (
4+
"encoding/json"
5+
"errors"
6+
47
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
58
"github.com/hashicorp/terraform-plugin-framework/types"
69
"github.com/segmentio/public-api-sdk-go/api"
@@ -45,7 +48,8 @@ func GetScheduleConfig(scheduleConfig api.NullableScheduleConfig) (jsontypes.Nor
4548
return jsontypes.NewNormalizedNull(), nil
4649
}
4750

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

0 commit comments

Comments
 (0)