Skip to content

Commit b85ee34

Browse files
committed
Fix status codes
1 parent 3019d2e commit b85ee34

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

commands_v1.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ func (c *CommandsV1Controller) Exec(ctx *app.ExecCommandsV1Context) error {
5050
// Put your logic here
5151

5252
// CommandsV1Controller_Exec: end_implement
53-
res := &app.ArduinoAgentExec{}
54-
return ctx.OK(res)
53+
return ctx.Accepted()
5554
}
5655

5756
// List runs the list action.

upload_v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ func (c *UploadV1Controller) Show(ctx *app.ShowUploadV1Context) error {
6060
// Put your logic here
6161

6262
// UploadV1Controller_Show: end_implement
63-
res := &app.ArduinoAgentCommand{}
63+
res := &app.ArduinoAgentExec{}
6464
return ctx.OK(res)
6565
}

0 commit comments

Comments
 (0)