fix: correct redis set when update node execution && fix openAPI run … (#639)
This commit is contained in:
parent
a3f68cfa01
commit
7697b6fb47
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue