mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
ff87264f95
* add setup steps * refactoring * omitempty * cleanup * begin org * create org * setup org * setup org * merge * fixes * fixes * fixes
18 lines
390 B
Go
18 lines
390 B
Go
package command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/v2/domain"
|
|
)
|
|
|
|
//TODO: private
|
|
func (r *CommandSide) GetIAM(ctx context.Context, aggregateID string) (*domain.IAM, error) {
|
|
iamWriteModel := NewIAMWriteModel(aggregateID)
|
|
err := r.eventstore.FilterToQueryReducer(ctx, iamWriteModel)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return writeModelToIAM(iamWriteModel), nil
|
|
}
|