mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 08:49:13 +00:00
66376f9213
* fix: refactor object-changes * fix: check if changes are nil
15 lines
332 B
Go
15 lines
332 B
Go
package management
|
|
|
|
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
|
|
|
func (c *Changes) Localizers() []middleware.Localizer {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(c.Changes))
|
|
for i, change := range c.Changes {
|
|
localizers[i] = change.EventType
|
|
}
|
|
return localizers
|
|
}
|