Skip to content

Commit ae8e6d7

Browse files
committed
hook bug fix
1 parent c4a1e6b commit ae8e6d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/api/backresthandler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ func retry(t *testing.T, times int, backoff time.Duration, f func() error) error
603603
}
604604

605605
func getOperations(t *testing.T, oplog *oplog.OpLog) []*v1.Operation {
606-
t.Logf("Reading oplog")
606+
t.Logf("Reading oplog at time %v", time.Now())
607607
operations := []*v1.Operation{}
608608
if err := oplog.ForAll(func(op *v1.Operation) error {
609609
operations = append(operations, op)

internal/hook/hook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (e *HookExecutor) ExecuteHooks(flowID int64, repo *v1.Repo, plan *v1.Plan,
4545

4646
operationBase := v1.Operation{
4747
Status: v1.OperationStatus_STATUS_INPROGRESS,
48-
PlanId: plan.GetId(),
48+
PlanId: planId,
4949
RepoId: repo.GetId(),
5050
InstanceId: e.config.Instance,
5151
FlowId: flowID,

0 commit comments

Comments
 (0)