fix: pass the connector id when workflow database nod… (#599)

This commit is contained in:
Zhj
2025-08-06 12:31:34 +08:00
committed by GitHub
parent f693da17ef
commit 8d1cc2e03a
9 changed files with 24 additions and 1 deletions

View File

@@ -423,6 +423,14 @@ func getExecUserID(ctx context.Context) int64 {
return execCtx.RootCtx.ExeCfg.Operator
}
func getConnectorID(ctx context.Context) int64 {
execCtx := execute.GetExeCtx(ctx)
if execCtx == nil {
panic(fmt.Errorf("unable to get exe context"))
}
return execCtx.RootCtx.ExeCfg.ConnectorID
}
func parseToInput(input map[string]any) map[string]any {
result := make(map[string]any, len(input))
for key, value := range input {