Skip to content

Commit

Permalink
satellite/console: Add trial end notification config to frontendconfig
Browse files Browse the repository at this point in the history
This backend<->frontend config mapping was unintentionally removed in
commit cd7bb2c.
Add it back so that the satellite UI knows when to warn the user that
trial is about to expire.

Change-Id: I169c5a9e0df5ee8b1593e1b1f1af439539ce2a6a
  • Loading branch information
mobyvb authored and andriikotko committed Mar 19, 2024
1 parent fdad50b commit 2c6bdc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions satellite/console/consoleweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ func (server *Server) frontendConfigHandler(w http.ResponseWriter, r *http.Reque
AnalyticsEnabled: server.AnalyticsConfig.Enabled,
PlausibleDomain: server.AnalyticsConfig.Plausible.Domain,
PlausibleScriptUrl: server.AnalyticsConfig.Plausible.ScriptUrl,
DaysBeforeTrialEndNotification: server.config.DaysBeforeTrialEndNotification,
}

err := json.NewEncoder(w).Encode(&cfg)
Expand Down

0 comments on commit 2c6bdc8

Please sign in to comment.