Skip to content

Commit

Permalink
Remove omitempty parameter from Subscription structs gifterId/Name/Login
Browse files Browse the repository at this point in the history
  • Loading branch information
aaricdev committed Dec 16, 2023
1 parent f34a368 commit 505c45f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/database/subscriptions.go
Expand Up @@ -16,9 +16,9 @@ type Subscription struct {
UserLogin string `db:"user_login" json:"user_login"`
UserName string `db:"user_name" json:"user_name"`
IsGift bool `db:"is_gift" json:"is_gift"`
GifterID *sql.NullString `db:"gifter_id" json:"gifter_id,omitempty"`
GifterName *sql.NullString `db:"gifter_name" json:"gifter_name,omitempty"`
GifterLogin *sql.NullString `db:"gifter_login" json:"gifter_login,omitempty"`
GifterID *sql.NullString `db:"gifter_id" json:"gifter_id"`
GifterName *sql.NullString `db:"gifter_name" json:"gifter_name"`
GifterLogin *sql.NullString `db:"gifter_login" json:"gifter_login"`
Tier string `db:"tier" json:"tier"`
CreatedAt string `db:"created_at" json:"-"`
// calculated fields
Expand Down

0 comments on commit 505c45f

Please sign in to comment.