mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
fix: all enums same style (#262)
* fix: all enums same style * fix: rename process to reduce * add some missing enum renaming Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -35,7 +35,7 @@ func (k *Key) EventQuery() (*models.SearchQuery, error) {
|
||||
return eventsourcing.KeyPairQuery(sequence), nil
|
||||
}
|
||||
|
||||
func (k *Key) Process(event *models.Event) error {
|
||||
func (k *Key) Reduce(event *models.Event) error {
|
||||
switch event.Type {
|
||||
case es_model.KeyPairAdded:
|
||||
privateKey, publicKey, err := view_model.KeysFromPairEvent(event)
|
||||
|
||||
Reference in New Issue
Block a user