fix: check resourceowner not empty string (#2922)

* fix: check resourceowner not empty string

* fix test

* fix tests

* fix tests of command pkg

* enable RoleSelfManagementGlobal as org member role

* fix tests of query pkg

* Update eventstore_test.go

* update docusaurus
This commit is contained in:
Livio Amstutz
2022-01-06 08:29:58 +01:00
committed by GitHub
parent 5f2b88be51
commit 19b095e6c2
10 changed files with 196 additions and 50 deletions

View File

@@ -78,7 +78,7 @@ func BaseEventFromRepo(event *repository.Event) *BaseEvent {
aggregate: Aggregate{
ID: event.AggregateID,
Type: AggregateType(event.AggregateType),
ResourceOwner: event.ResourceOwner,
ResourceOwner: event.ResourceOwner.String,
Version: Version(event.Version),
},
EventType: EventType(event.Type),