aboutsummaryrefslogtreecommitdiffstats
path: root/internal/user/repo
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-01 18:44:41 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-01 18:44:41 -0400
commit17326a16a018ae84d274be53b52be9273ef69932 (patch)
treea98d2edfdf8a7738f1825e550f2a085e3d70f74e /internal/user/repo
parenta6871d420053fa06cebdeccee82752a9f9b99af8 (diff)
downloaddonetick-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.go2
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
}
}