omit empty LastSuccessfulAttemptStartTime

This commit is contained in:
Max Erenberg 2023-05-03 00:52:41 -04:00 committed by Mirror
parent 8d078d04de
commit 898f17aabb
2 changed files with 2 additions and 1 deletions

1
merlin/.gitignore vendored
View File

@ -8,4 +8,5 @@
/state/
/merlin
/merlin.sock
/cmd/arthur/arthur
/test_tmp

View File

@ -22,7 +22,7 @@ type RepoStatusInfo struct {
IsRunning bool `json:"is_running"`
LastAttemptStartTime int64 `json:"last_attempt_time"`
LastAttemptExit string `json:"last_attempt_exit"`
LastSuccessfulAttemptStartTime int64 `json:"last_successful_attempt_time"`
LastSuccessfulAttemptStartTime int64 `json:"last_successful_attempt_time,omitempty"`
NextSyncTime int64 `json:"next_sync_time"`
}
type StatusInfo struct {