mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17: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,
|
||||
cmd.repo.IDCondition(cmd.OrgID),
|
||||
cmd.InstanceID,
|
||||
cmd.changes,
|
||||
cmd.changes...,
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@ func (c *CreateOrgMemberCommand) Execute(ctx context.Context, opts *CommandOpts)
|
||||
|
||||
// String implements [Commander].
|
||||
func (c *CreateOrgMemberCommand) String() string {
|
||||
panic("unimplemented")
|
||||
return "CreateOrgMemberCommand"
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
||||
|
||||
var _ OrgsQueryOpts = (*orgByIDQueryOpt)(nil)
|
||||
var _ OrgsQueryOpts = (*orgByStateQueryOpt)(nil)
|
||||
|
||||
type orgByStateQueryOpt struct {
|
||||
state OrgState
|
||||
@@ -102,7 +102,7 @@ func (opt *orgByStateQueryOpt) applyOnOrgsQuery(query *OrgsQuery) {
|
||||
query.conditions = append(query.conditions, query.repo.StateCondition(opt.state))
|
||||
}
|
||||
|
||||
var _ OrgsQueryOpts = (*orgByIDQueryOpt)(nil)
|
||||
var _ OrgsQueryOpts = (*orgQuerySortingColumnOpt)(nil)
|
||||
|
||||
type orgQuerySortingColumnOpt struct {
|
||||
getColumn func(query *OrgsQuery) database.Column
|
||||
|
Reference in New Issue
Block a user