aboutsummaryrefslogtreecommitdiff
path: root/internal/db/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/users.go')
-rw-r--r--internal/db/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/users.go b/internal/db/users.go
index 5e1baf01..ebf2af87 100644
--- a/internal/db/users.go
+++ b/internal/db/users.go
@@ -59,7 +59,7 @@ func (u *User) BeforeCreate(tx *gorm.DB) error {
}
// NOTE: This is a GORM query hook.
-func (u *User) AfterFind(tx *gorm.DB) error {
+func (u *User) AfterFind(_ *gorm.DB) error {
u.Created = time.Unix(u.CreatedUnix, 0).Local()
u.Updated = time.Unix(u.UpdatedUnix, 0).Local()
return nil