Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit a5e7d99

Browse files
committed
WIP
1 parent 783c855 commit a5e7d99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

module/donation/repository/payment_user.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func (r *impl) FindPaymentUser(ctx context.Context, conds donationport.FindPaymentUserConds, lock sharedport.Lock) (*donationdomain.PaymentUser, error) {
1818
db := r.db.WithContext(ctx).
19-
Where("user_id = ?", conds.UserID.String())
19+
Where("twinte_user_id = ?", conds.UserID.String())
2020

2121
if lock != sharedport.LockNone {
2222
db = db.Clauses(clause.Locking{
@@ -37,7 +37,7 @@ func (r *impl) ListPaymentUsers(ctx context.Context, conds donationport.ListPaym
3737
db := r.db.WithContext(ctx)
3838

3939
if conds.RequireDisplayName {
40-
db.Where("display_name IS NOT NULL")
40+
db = db.Where("display_name IS NOT NULL")
4141
}
4242

4343
if lock != sharedport.LockNone {

module/donation/usecase/impl.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func New(a authmodule.AccessController, f donationport.Factory, g donationport.G
3838
if err := uc.updateContributorsCache(context.Background()); err != nil {
3939
log.Printf("failed to update contributors cache, %v", err)
4040
}
41-
<-time.After(12 * time.Hour)
41+
<-time.After(time.Hour)
4242
}
4343
}()
4444

@@ -48,7 +48,7 @@ func New(a authmodule.AccessController, f donationport.Factory, g donationport.G
4848
if err := uc.updateTotalAmountCache(context.Background()); err != nil {
4949
log.Printf("failed to update total amount cache, %v", err)
5050
}
51-
<-time.After(12 * time.Hour)
51+
<-time.After(time.Hour)
5252
}
5353
}()
5454

0 commit comments

Comments
 (0)