fix: add user metadata to the features (#2179)

* fix: add user metadata to the features

* fix: remove user metadata

* fix: add test

* fix: add test
This commit is contained in:
Fabi
2021-08-12 16:10:01 +02:00
committed by GitHub
parent b104011418
commit d1c03fd15c
25 changed files with 402 additions and 10 deletions
+5 -1
View File
@@ -75,7 +75,8 @@ func (wm *OrgFeaturesWriteModel) NewSetEvent(
labelPolicyWatermark,
customDomain,
customText,
privacyPolicy bool,
privacyPolicy,
metadataUser bool,
) (*org.FeaturesSetEvent, bool) {
changes := make([]features.FeaturesChanges, 0)
@@ -131,6 +132,9 @@ func (wm *OrgFeaturesWriteModel) NewSetEvent(
if wm.PrivacyPolicy != privacyPolicy {
changes = append(changes, features.ChangePrivacyPolicy(privacyPolicy))
}
if wm.MetadataUser != metadataUser {
changes = append(changes, features.ChangeMetadataUser(metadataUser))
}
if len(changes) == 0 {
return nil, false