aboutsummaryrefslogtreecommitdiff
path: root/internal/db/two_factors.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/two_factors.go')
-rw-r--r--internal/db/two_factors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/two_factors.go b/internal/db/two_factors.go
index 7692e5d5..935f66db 100644
--- a/internal/db/two_factors.go
+++ b/internal/db/two_factors.go
@@ -46,7 +46,7 @@ func (t *TwoFactor) BeforeCreate(tx *gorm.DB) error {
}
// NOTE: This is a GORM query hook.
-func (t *TwoFactor) AfterFind(tx *gorm.DB) error {
+func (t *TwoFactor) AfterFind(_ *gorm.DB) error {
t.Created = time.Unix(t.CreatedUnix, 0).Local()
return nil
}