mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:47:33 +00:00
feat: pub sub (#1341)
* fix: pub sub * fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * fix: pub sub in new eventstore * fix tests Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -47,7 +47,14 @@ func (es *Eventstore) PushEvents(ctx context.Context, pushEvents ...EventPusher)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return es.mapEvents(events)
|
||||
|
||||
eventReaders, err := es.mapEvents(events)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
go notify(eventReaders)
|
||||
return eventReaders, nil
|
||||
}
|
||||
|
||||
func eventsToRepository(pushEvents []EventPusher) (events []*repository.Event, constraints []*repository.UniqueConstraint, err error) {
|
||||
|
Reference in New Issue
Block a user