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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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() {

View File

@ -303,7 +303,7 @@ func (e *executeHistoryStoreImpl) UpdateNodeExecutionStreaming(ctx context.Conte
key := fmt.Sprintf(nodeExecOutputKey, execution.ID)
if err := e.redis.Set(ctx, key, execution.Output, nodeExecDataExpiry).Err(); err != nil {
if err := e.redis.Set(ctx, key, *execution.Output, nodeExecDataExpiry).Err(); err != nil {
return vo.WrapError(errno.ErrRedisError, err)
}