Skip to content

Commit

Permalink
use int64 instead of Time for last deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Dec 8, 2021
1 parent 3c79361 commit d6bfb91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions domain/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Public struct {
}

type LastDeployment struct {
Version string `yaml:"version"`
Time time.Time `yaml:"time"`
Version string `yaml:"version"`
Timestamp int64 `yaml:"timestamp"`
}

func (s *Stage) ResourceTags() map[string]string {
Expand Down Expand Up @@ -111,8 +111,8 @@ func (s *Stage) SetEndpoints(rest, ws string) {

func (s *Stage) SetLastDeployment() {
s.LastDeployment = &LastDeployment{
Version: s.node.Version,
Time: time.Now().Round(time.Second),
Version: s.node.Version,
Timestamp: time.Now().UnixMilli(),
}
}

Expand Down

0 comments on commit d6bfb91

Please sign in to comment.