Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing max_execution parma when creating task #55

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions model/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisli30 this will fix the MaxExecution always returning 0


// initial state for task
Status: avsproto.TaskStatus_Active,
Expand Down
Loading