Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/internal/model/preauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "time"
type Preauth struct {
ID string `json:"id"`
TokenHash string `json:"token_hash"`
IsActive bool `json:"is_active"`
ActiveUntil time.Time `json:"active_until"`
Tier string `json:"tier"`
}
1 change: 0 additions & 1 deletion api/internal/model/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type Subscription struct {
UserID string `json:"-"`
Type string `json:"type"`
ActiveUntil time.Time `json:"active_until"`
IsActive bool `json:"-"`
Tier string `json:"tier"`
TokenHash *string `gorm:"unique" json:"-"`
Notified bool `json:"-"`
Expand Down
2 changes: 0 additions & 2 deletions api/internal/service/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func (s *Service) PostSubscription(ctx context.Context, userID string, preauth m
sub := model.Subscription{
UserID: userID,
ActiveUntil: preauth.ActiveUntil,
IsActive: preauth.IsActive,
Tier: preauth.Tier,
TokenHash: &preauth.TokenHash,
}
Expand Down Expand Up @@ -115,7 +114,6 @@ func (s *Service) UpdateSubscription(ctx context.Context, sub model.Subscription
}

sub.ActiveUntil = preauth.ActiveUntil
sub.IsActive = preauth.IsActive
sub.Tier = preauth.Tier
sub.TokenHash = &preauth.TokenHash
sub.Type = ""
Expand Down
Loading