feat: Telegram bot, notifications, profile settings, 365-day refresh tokens

This commit is contained in:
Cosmo
2026-02-06 14:11:26 +00:00
parent 9e467b0448
commit afeb3adddf
7 changed files with 448 additions and 128 deletions

View File

@@ -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...)