diff options
Diffstat (limited to '')
-rw-r--r-- | internal/user/repo/repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/user/repo/repository.go b/internal/user/repo/repository.go index fa53753..76ddd54 100644 --- a/internal/user/repo/repository.go +++ b/internal/user/repo/repository.go @@ -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 } } |