Skip to content

Commit

Permalink
Disable auto UpdatedAt for SetupKeys as we set it manually
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Sep 28, 2023
1 parent 60d94a0 commit 53276ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/setupkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type SetupKey struct {
Type SetupKeyType
CreatedAt time.Time
ExpiresAt time.Time
UpdatedAt time.Time
UpdatedAt time.Time `gorm:"autoUpdateTime:false"`
// Revoked indicates whether the key was revoked or not (we don't remove them for tracking purposes)
Revoked bool
// UsedTimes indicates how many times the key was used
Expand Down

0 comments on commit 53276ec

Please sign in to comment.