diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 14f092373..8c1814792 100644 --- a/model/config.go +++ b/model/config.go @@ -410,6 +410,10 @@ type ElasticSearchSettings struct { Sniff *bool } +type DataRetentionSettings struct { + Enable *bool +} + type Config struct { ServiceSettings ServiceSettings TeamSettings TeamSettings @@ -434,6 +438,7 @@ type Config struct { AnalyticsSettings AnalyticsSettings WebrtcSettings WebrtcSettings ElasticSearchSettings ElasticSearchSettings + DataRetentionSettings DataRetentionSettings } func (o *Config) ToJson() string { @@ -1257,6 +1262,11 @@ func (o *Config) SetDefaults() { *o.ElasticSearchSettings.Sniff = true } + if o.DataRetentionSettings.Enable == nil { + o.DataRetentionSettings.Enable = new(bool) + *o.DataRetentionSettings.Enable = false + } + o.defaultWebrtcSettings() } |