From 53276ec516346cf923cc863e7f30de16e2e1d138 Mon Sep 17 00:00:00 2001 From: Yury Gargay Date: Thu, 28 Sep 2023 10:41:55 +0200 Subject: [PATCH] Disable auto UpdatedAt for SetupKeys as we set it manually --- management/server/setupkey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/setupkey.go b/management/server/setupkey.go index 6cc10904e85..55efd3d7ebe 100644 --- a/management/server/setupkey.go +++ b/management/server/setupkey.go @@ -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