From fa3561ae58a8b655dd4ad6e1e5999c6d55b2b5cf Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 21:52:10 +0800 Subject: [PATCH] :bug: Fix place transaction wrongly --- pkg/internal/services/programs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/programs.go b/pkg/internal/services/programs.go index 1e9d36d..b21e3b4 100644 --- a/pkg/internal/services/programs.go +++ b/pkg/internal/services/programs.go @@ -70,7 +70,7 @@ func ChargeForProgram(member models.ProgramMember) error { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() _, err = wc.MakeTransactionWithAccount(ctx, &proto.MakeTransactionWithAccountRequest{ - PayeeAccountId: lo.ToPtr(uint64(member.AccountID)), + PayerAccountId: lo.ToPtr(uint64(member.AccountID)), Amount: pricing.Amount, Currency: pricing.Currency, Remark: fmt.Sprintf("Program Membership: %s", member.Program.Name),