Commit 606ed130 authored by vicotor's avatar vicotor

fix bug

parent 772e2d0d
......@@ -251,14 +251,6 @@ func TaskAdd(c *fiber.Ctx) error {
})
}
if ok {
return c.JSON(Res{
Code: 500,
Msg: "task already existed",
})
}
}
job := TaskJob{
......
......@@ -276,6 +276,9 @@ func (job *TaskJob) String() string {
func GetTasks() ([]TaskJob, error) {
tasks, err := QueryAllTask()
for _, task := range tasks {
fmt.Println("GetTasks", task)
}
if err != nil {
return nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment