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 {
eventstore.WriteModel
resourceOwner string
UserMetadata map[string]map[string][]byte
UserMetadata map[string]map[string][]byte
}
func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel {
return &UserMetadataByOrgListWriteModel{
resourceOwner: resourceOwner,
UserMetadata: make(map[string]map[string][]byte),
WriteModel: eventstore.WriteModel{
ResourceOwner: resourceOwner,
},
UserMetadata: make(map[string]map[string][]byte),
}
}