Skip to content

Commit

Permalink
fix(kv): check createdat and updatedat should be identical (influxdat…
Browse files Browse the repository at this point in the history
  • Loading branch information
imogenkinsman authored Aug 20, 2019
1 parent 450b85f commit 4523064
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kv/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ func (s *Service) createCheck(ctx context.Context, tx Tx, c influxdb.Check, user

c.SetID(s.IDGenerator.ID())
c.SetOwnerID(userID)
c.SetCreatedAt(s.Now())
c.SetUpdatedAt(s.Now())
now := s.Now()
c.SetCreatedAt(now)
c.SetUpdatedAt(now)

if err := s.putCheck(ctx, tx, c); err != nil {
return err
Expand Down

0 comments on commit 4523064

Please sign in to comment.