Skip to content

Commit

Permalink
fix project pull webhook args
Browse files Browse the repository at this point in the history
  • Loading branch information
fitz7 committed Apr 16, 2024
1 parent e2b250f commit c2b692d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (c *Controller) triggerRefMetricsPull(ctx context.Context, ref schemas.Ref)
}

if matches {
c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, ref.Project.Name)
c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, ref.Project.Name, ref.Project.Name)
log.WithFields(logFields).Info("project ref not currently exported but its configuration matches a wildcard, triggering a pull of the project")
} else {
log.WithFields(logFields).Debug("project ref not matching wildcard, skipping..")
Expand Down Expand Up @@ -284,7 +284,7 @@ func (c *Controller) triggerEnvironmentMetricsPull(ctx context.Context, env sche
}

if matches {
c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, env.ProjectName)
c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, env.ProjectName, env.ProjectName)
log.WithFields(logFields).Info("project environment not currently exported but its configuration matches a wildcard, triggering a pull of the project")
} else {
log.WithFields(logFields).Debug("project ref not matching wildcard, skipping..")
Expand Down

0 comments on commit c2b692d

Please sign in to comment.