From 17326a16a018ae84d274be53b52be9273ef69932 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 1 Jul 2024 18:44:41 -0400 Subject: Update local.yaml to set is_done_tick_dot_com to false, add things history --- internal/user/repo/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/user') 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 } } -- cgit