copilot changes

This commit is contained in:
adlerhurst
2025-07-29 18:10:35 +02:00
parent b4cee886fc
commit fc3e5cf3e3
3 changed files with 4 additions and 4 deletions

View File

@@ -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
}

View File

@@ -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.

View File

@@ -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