mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:27:32 +00:00
copilot changes
This commit is contained in:
@@ -240,7 +240,7 @@ func (cmd *UpdateOrganizationCommand) Execute(ctx context.Context, opts *Command
|
|||||||
_, err = cmd.repo.Update(ctx,
|
_, err = cmd.repo.Update(ctx,
|
||||||
cmd.repo.IDCondition(cmd.OrgID),
|
cmd.repo.IDCondition(cmd.OrgID),
|
||||||
cmd.InstanceID,
|
cmd.InstanceID,
|
||||||
cmd.changes,
|
cmd.changes...,
|
||||||
)
|
)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,7 @@ func (c *CreateOrgMemberCommand) Execute(ctx context.Context, opts *CommandOpts)
|
|||||||
|
|
||||||
// String implements [Commander].
|
// String implements [Commander].
|
||||||
func (c *CreateOrgMemberCommand) String() string {
|
func (c *CreateOrgMemberCommand) String() string {
|
||||||
panic("unimplemented")
|
return "CreateOrgMemberCommand"
|
||||||
}
|
}
|
||||||
|
|
||||||
// MemberRepository is a sub repository of the org repository and maybe the instance repository.
|
// MemberRepository is a sub repository of the org repository and maybe the instance repository.
|
||||||
|
@@ -86,7 +86,7 @@ func (opt *orgByIDQueryOpt) applyOnOrgsQuery(query *OrgsQuery) {
|
|||||||
query.conditions = append(query.conditions, query.repo.IDCondition(opt.id))
|
query.conditions = append(query.conditions, query.repo.IDCondition(opt.id))
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ OrgsQueryOpts = (*orgByIDQueryOpt)(nil)
|
var _ OrgsQueryOpts = (*orgByStateQueryOpt)(nil)
|
||||||
|
|
||||||
type orgByStateQueryOpt struct {
|
type orgByStateQueryOpt struct {
|
||||||
state OrgState
|
state OrgState
|
||||||
@@ -102,7 +102,7 @@ func (opt *orgByStateQueryOpt) applyOnOrgsQuery(query *OrgsQuery) {
|
|||||||
query.conditions = append(query.conditions, query.repo.StateCondition(opt.state))
|
query.conditions = append(query.conditions, query.repo.StateCondition(opt.state))
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ OrgsQueryOpts = (*orgByIDQueryOpt)(nil)
|
var _ OrgsQueryOpts = (*orgQuerySortingColumnOpt)(nil)
|
||||||
|
|
||||||
type orgQuerySortingColumnOpt struct {
|
type orgQuerySortingColumnOpt struct {
|
||||||
getColumn func(query *OrgsQuery) database.Column
|
getColumn func(query *OrgsQuery) database.Column
|
||||||
|
Reference in New Issue
Block a user