Skip to content

Commit

Permalink
omitempty email + name fields in User struct
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalef committed Sep 18, 2023
1 parent ef17e04 commit cd0bc6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/models/userstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ type User struct {
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
UserID string `json:"user_id"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Metadata map[string]interface{} `json:"metadata"`
Email string `json:"email,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}

type UserListResponse struct {
Expand Down

0 comments on commit cd0bc6f

Please sign in to comment.