mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-09-28 15:45:00 +02:00
Merge pull request #10 from edgebox-iot/fix-result-null-conversion
Fix query panic on GetNextTask()
This commit is contained in:
@@ -70,7 +70,7 @@ func GetNextTask() Task {
|
||||
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 err != nil {
|
||||
|
||||
Reference in New Issue
Block a user