fix: correct redis set when update node execution && fix openAPI run … (#639)

This commit is contained in:
lvxinyu-1117
2025-08-08 10:44:08 +08:00
committed by GitHub
parent a3f68cfa01
commit 7697b6fb47
2 changed files with 7 additions and 3 deletions

View File

@@ -1379,7 +1379,9 @@ func (w *ApplicationService) OpenAPIStreamRun(ctx context.Context, req *workflow
}
var appID, agentID *int64
if req.IsSetProjectID() {
if req.IsSetAppID() {
appID = ptr.Of(mustParseInt64(req.GetAppID()))
} else if req.IsSetProjectID() {
appID = ptr.Of(mustParseInt64(req.GetProjectID()))
}
if req.IsSetBotID() {
@@ -1526,7 +1528,9 @@ func (w *ApplicationService) OpenAPIRun(ctx context.Context, req *workflow.OpenA
}
var appID, agentID *int64
if req.IsSetProjectID() {
if req.IsSetAppID() {
appID = ptr.Of(mustParseInt64(req.GetAppID()))
} else if req.IsSetProjectID() {
appID = ptr.Of(mustParseInt64(req.GetProjectID()))
}
if req.IsSetBotID() {