fix: remove metadata on remove feature with correct resourceowner (#2376)

This commit is contained in:
Fabi 2021-09-14 17:15:42 +02:00 committed by GitHub
parent b6b5b1b782
commit 50b30bc4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,14 +100,15 @@ func (wm *UserMetadataListWriteModel) Query() *eventstore.SearchQueryBuilder {
type UserMetadataByOrgListWriteModel struct { type UserMetadataByOrgListWriteModel struct {
eventstore.WriteModel eventstore.WriteModel
resourceOwner string UserMetadata map[string]map[string][]byte
UserMetadata map[string]map[string][]byte
} }
func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel { func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel {
return &UserMetadataByOrgListWriteModel{ return &UserMetadataByOrgListWriteModel{
resourceOwner: resourceOwner, WriteModel: eventstore.WriteModel{
UserMetadata: make(map[string]map[string][]byte), ResourceOwner: resourceOwner,
},
UserMetadata: make(map[string]map[string][]byte),
} }
} }