Skip to content

Commit

Permalink
fix(pkg/models.User): set default reward
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince213 committed May 22, 2024
1 parent babc0cf commit 207a8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type User struct {
IsCommunityAdmin bool `gorm:"default:false"`
InvitationCode string
InvitedByUserID uint
Reward int
Reward int `gorm:"default:0"`
HasPostedComments bool `gorm:"default:false"`
}

Expand Down

0 comments on commit 207a8e6

Please sign in to comment.