Skip to content

Commit d53c209

Browse files
committed
Do not copy plan feature config to configsource when subscription change
Now plan configs are loaded through plan resource level
1 parent e21a3d8 commit d53c209

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pkg/portal/service/subscription.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"errors"
77
"time"
88

9-
"sigs.k8s.io/yaml"
10-
119
"github.com/Masterminds/squirrel"
1210

1311
"github.com/authgear/authgear-server/pkg/api/apierrors"
@@ -273,14 +271,7 @@ func (s *SubscriptionService) UpdateAppPlan0(ctx context.Context, appID string,
273271
return err
274272
}
275273

276-
featureConfigYAML, err := yaml.Marshal(p.RawFeatureConfig)
277-
if err != nil {
278-
return err
279-
}
280-
281274
consrc.PlanName = p.Name
282-
// json.Marshal handled base64 encoded of the YAML file
283-
consrc.Data[configsource.AuthgearFeatureYAML] = featureConfigYAML
284275
consrc.UpdatedAt = s.Clock.NowUTC()
285276
err = s.ConfigSourceStore.UpdateDatabaseSource(ctx, consrc)
286277
if err != nil {

0 commit comments

Comments
 (0)