From 6e5b8b3b8d5fc14129c45bb067031c20e9061186 Mon Sep 17 00:00:00 2001 From: Vinh Date: Mon, 9 Dec 2024 19:07:18 -0800 Subject: [PATCH] fix missing max_execution parma when creating task --- model/task.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/model/task.go b/model/task.go index db57fe6..be7734d 100644 --- a/model/task.go +++ b/model/task.go @@ -56,12 +56,13 @@ func NewTaskFromProtobuf(user *User, body *avsproto.CreateTaskReq) (*Task, error Owner: owner.Hex(), SmartWalletAddress: aaAddress.Hex(), - Trigger: body.Trigger, - Nodes: body.Nodes, - Edges: body.Edges, - Memo: body.Memo, - ExpiredAt: body.ExpiredAt, - StartAt: body.StartAt, + Trigger: body.Trigger, + Nodes: body.Nodes, + Edges: body.Edges, + Memo: body.Memo, + ExpiredAt: body.ExpiredAt, + StartAt: body.StartAt, + MaxExecution: body.MaxExecution, // initial state for task Status: avsproto.TaskStatus_Active,