Skip to content

Commit

Permalink
fix: fix miss makezero bug (#6971)
Browse files Browse the repository at this point in the history
Signed-off-by: alingse <alingse@foxmail.com>
  • Loading branch information
alingse authored May 28, 2024
1 parent d0d595c commit 389ecf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/api/migrate/migrate_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func GetOrganizationUsersToMigrate(ctx context.Context, db *gorp.DbMap) ([]UserO
return nil, err
}

userIds := make([]string, len(allUsers))
userIds := make([]string, 0, len(allUsers))
mapUsers := make(map[string]*sdk.AuthentifiedUser)
for i := range allUsers {
u := &allUsers[i]
Expand Down
2 changes: 1 addition & 1 deletion engine/hooks/trigger_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (s *Service) triggerWorkflows(ctx context.Context, hre *sdk.HookRepositoryE
wh.Status = sdk.HookEventWorkflowStatusSkipped
} else {
// Query params to select the right workflow version to run
mods := make([]cdsclient.RequestModifier, 2)
mods := make([]cdsclient.RequestModifier, 0, 2)
mods = append(mods, cdsclient.WithQueryParameter("ref", wh.Ref), cdsclient.WithQueryParameter("commit", wh.Commit))

runRequest := sdk.V2WorkflowRunHookRequest{
Expand Down

0 comments on commit 389ecf6

Please sign in to comment.