Query contains named columns

pull/10/head
Paulo Truta 2021-06-01 23:53:17 +00:00
parent 5d69a9fb22
commit 1736b04a66
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func GetNextTask() Task {
panic(err.Error()) panic(err.Error())
} }
results, err := db.Query("SELECT * FROM task WHERE status = 0 ORDER BY created ASC LIMIT 1;") results, err := db.Query("SELECT id, task, args, status, result, created, updated FROM task WHERE status = 0 ORDER BY created ASC LIMIT 1;")
// if there is an error inserting, handle it // if there is an error inserting, handle it
if err != nil { if err != nil {