Set workflow & trigger ID when actionloggng create events
This commit is contained in:
parent
e93c79af02
commit
03806a20ab
@ -221,6 +221,7 @@ func (svc *trigger) Create(ctx context.Context, new *types.Trigger) (res *types.
|
||||
CreatedAt: *now(),
|
||||
CreatedBy: cUser,
|
||||
}
|
||||
wap.new = res
|
||||
|
||||
if err = store.CreateAutomationTrigger(ctx, s, res); err != nil {
|
||||
return
|
||||
|
||||
@ -239,6 +239,8 @@ func (svc *workflow) Create(ctx context.Context, new *types.Workflow) (wf *types
|
||||
CreatedBy: cUser,
|
||||
}
|
||||
|
||||
wap.workflow = wf
|
||||
|
||||
if g, runAs, err = svc.validateWorkflow(ctx, wf); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user