Update local.yaml to set is_done_tick_dot_com to false, add things history

This commit is contained in:
Mo Tarbin 2024-07-01 18:44:41 -04:00
parent a6871d4200
commit 17326a16a0
6 changed files with 12 additions and 13 deletions

View file

@ -58,7 +58,7 @@ func (r *UserRepository) GetUserByUsername(c context.Context, username string) (
return nil, err
}
} else {
if err := r.db.WithContext(c).Where("username = ?", username).First(&user).Error; err != nil {
if err := r.db.WithContext(c).Table("users u").Select("u.*, 'active' as subscription, '2999-12-31' as expiration").Where("username = ?", username).First(&user).Error; err != nil {
return nil, err
}
}