fix(backend): job model wasn't reflecting the nullable fields
ci-agent / build (push) Failing after 5m6s
ci-agent / build (push) Failing after 5m6s
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package models
|
||||
|
||||
type Job struct {
|
||||
ID int64
|
||||
AgentID string
|
||||
JobForInsert
|
||||
JobForUpdate
|
||||
type JobBase struct {
|
||||
ID int64
|
||||
AgentID string
|
||||
}
|
||||
type JobForInsert struct {
|
||||
Command []string
|
||||
@@ -15,3 +13,10 @@ type JobForUpdate struct {
|
||||
Stderr string
|
||||
Status int32
|
||||
}
|
||||
type Job struct {
|
||||
JobBase
|
||||
JobForInsert
|
||||
Stdout *string
|
||||
Stderr *string
|
||||
Status *int32
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user