feat: Telegram bot, notifications, profile settings, 365-day refresh tokens
This commit is contained in:
@@ -182,6 +182,16 @@ func (r *UserRepository) UpdateProfile(id int64, req *model.UpdateProfileRequest
|
||||
args = append(args, *req.Timezone)
|
||||
argIdx++
|
||||
}
|
||||
if req.MorningReminderTime != nil {
|
||||
query += fmt.Sprintf(", morning_reminder_time = $%d", argIdx)
|
||||
args = append(args, *req.MorningReminderTime)
|
||||
argIdx++
|
||||
}
|
||||
if req.EveningReminderTime != nil {
|
||||
query += fmt.Sprintf(", evening_reminder_time = $%d", argIdx)
|
||||
args = append(args, *req.EveningReminderTime)
|
||||
argIdx++
|
||||
}
|
||||
|
||||
query += " WHERE id = $1"
|
||||
_, err := r.db.Exec(query, args...)
|
||||
|
||||
Reference in New Issue
Block a user