Set reminders on by default
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
c7d43db86c
commit
6f0da8d764
|
@ -22,7 +22,7 @@ import (
|
|||
)
|
||||
|
||||
type users20201218220204 struct {
|
||||
EmailRemindersEnabled bool `xorm:"bool default false" json:"-"`
|
||||
EmailRemindersEnabled bool `xorm:"bool default true" json:"-"`
|
||||
}
|
||||
|
||||
func (users20201218220204) TableName() string {
|
||||
|
|
|
@ -63,7 +63,7 @@ type User struct {
|
|||
Subject string `xorm:"text null" json:"-"`
|
||||
|
||||
// If enabled, sends email reminders of tasks to the user.
|
||||
EmailRemindersEnabled bool `xorm:"bool default false" json:"-"`
|
||||
EmailRemindersEnabled bool `xorm:"bool default true" json:"-"`
|
||||
|
||||
// A timestamp when this task was created. You cannot change this value.
|
||||
Created time.Time `xorm:"created not null" json:"created"`
|
||||
|
@ -325,6 +325,7 @@ func UpdateUser(user *User) (updatedUser *User, err error) {
|
|||
"avatar_file_id",
|
||||
"is_active",
|
||||
"name",
|
||||
"email_reminders_enabled",
|
||||
).
|
||||
Update(user)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue