to go mod
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"time"
|
||||
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
)
|
||||
|
||||
func toMap(j *scheduler.Job, output bool) map[string]interface{} {
|
||||
@@ -26,8 +27,8 @@ func toMap(j *scheduler.Job, output bool) map[string]interface{} {
|
||||
"status": j.LastStatus,
|
||||
}
|
||||
if output {
|
||||
"output": j.LastOutput,
|
||||
"status": j.LastStatus,
|
||||
out["output"] = j.LastOutput
|
||||
out["status"] = j.LastStatus
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user