diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-01 18:44:41 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-01 18:44:41 -0400 |
commit | 17326a16a018ae84d274be53b52be9273ef69932 (patch) | |
tree | a98d2edfdf8a7738f1825e550f2a085e3d70f74e /internal/user | |
parent | a6871d420053fa06cebdeccee82752a9f9b99af8 (diff) | |
download | donetick-17326a16a018ae84d274be53b52be9273ef69932.tar.gz donetick-17326a16a018ae84d274be53b52be9273ef69932.tar.bz2 donetick-17326a16a018ae84d274be53b52be9273ef69932.zip |
Update local.yaml to set is_done_tick_dot_com to false, add things history
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 } } |