From 382c6df96c81f942533c8e85acf83a68617e4a56 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 24 Apr 2024 21:29:44 -0700 Subject: [PATCH] Fix User model json fields --- pkg/models/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/user.go b/pkg/models/user.go index a146366..4273aec 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -19,13 +19,13 @@ import ( type User struct { ID uint64 `gorm:"primaryKey"` Username string `gorm:"uniqueIndex"` - Email string `gorm:"uniqueIndex" json:"-"` + Email string `gorm:"uniqueIndex"` HashedPassword string `json:"-"` IsAdmin bool `gorm:"index"` Status UserStatus `gorm:"index"` // active, disabled Visibility UserVisibility `gorm:"index"` // public, private Name *string - Birthdate time.Time `json:"-"` + Birthdate time.Time Certified bool Explicit bool `gorm:"index"` // user has opted-in to see explicit content InnerCircle bool `gorm:"index"` // user is in the inner circle