mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
8dcbbc87ca
* fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * add queries user to operator * set password for queries on tests * set password for queries on tests * fix config
19 lines
341 B
Go
19 lines
341 B
Go
package eventstore
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/zitadel/internal/query"
|
|
|
|
"github.com/caos/zitadel/internal/iam/model"
|
|
)
|
|
|
|
type IAMRepository struct {
|
|
IAMID string
|
|
|
|
IAMV2QuerySide *query.Queries
|
|
}
|
|
|
|
func (repo *IAMRepository) GetIAM(ctx context.Context) (*model.IAM, error) {
|
|
return repo.IAMV2QuerySide.IAMByID(ctx, repo.IAMID)
|
|
}
|