Skip to content

Commit

Permalink
Merge pull request #33 from ShanghaitechGeekPie/fix-ranklist
Browse files Browse the repository at this point in the history
fix(pkg/models.User): set default reward
  • Loading branch information
WAAutoMaton committed May 22, 2024
2 parents 97e0041 + 207a8e6 commit 1c3ca2f
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 1c3ca2f

Please sign in to comment.