summaryrefslogtreecommitdiffstats
path: root/app/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/config.go')
-rw-r--r--app/config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/config.go b/app/config.go
index cb74bd1b3..34f4dc751 100644
--- a/app/config.go
+++ b/app/config.go
@@ -24,7 +24,7 @@ import (
)
const (
- ERROR_SERVICE_TERMS_NO_ROWS_FOUND = "store.sql_service_terms_store.get.no_rows.app_error"
+ ERROR_TERMS_OF_SERVICE_NO_ROWS_FOUND = "store.sql_terms_of_service_store.get.no_rows.app_error"
)
func (a *App) Config() *model.Config {
@@ -246,12 +246,12 @@ func (a *App) AsymmetricSigningKey() *ecdsa.PrivateKey {
func (a *App) regenerateClientConfig() {
a.clientConfig = utils.GenerateClientConfig(a.Config(), a.DiagnosticId(), a.License())
- if a.clientConfig["EnableCustomServiceTerms"] == "true" {
- serviceTerms, err := a.GetLatestServiceTerms()
+ if a.clientConfig["EnableCustomTermsOfService"] == "true" {
+ termsOfService, err := a.GetLatestTermsOfService()
if err != nil {
mlog.Err(err)
} else {
- a.clientConfig["CustomServiceTermsId"] = serviceTerms.Id
+ a.clientConfig["CustomTermsOfServiceId"] = termsOfService.Id
}
}