3
0

Set workflow & trigger ID when actionloggng create events

This commit is contained in:
Tomaž Jerman 2023-06-13 09:48:13 +02:00
parent e93c79af02
commit 03806a20ab
2 changed files with 3 additions and 0 deletions

View File

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

View File

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