From b9625d6d860e2f745c05ba1000ac8ede7b5dbbcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=B2=E6=8D=97=E3=82=BC=E3=83=9F?= <47470998+wolfmagnate@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:32:49 +0900 Subject: [PATCH] =?UTF-8?q?provider=E3=81=AE=E3=83=90=E3=82=B0=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/usecase/moneyprovider.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/back/usecase/moneyprovider.go b/back/usecase/moneyprovider.go index 565d9cd..b4fd491 100644 --- a/back/usecase/moneyprovider.go +++ b/back/usecase/moneyprovider.go @@ -26,17 +26,12 @@ func (u Usecase) GetMoneyProvidersSummary(userID string) (MoneyProvidersSummaryR var providersSummary []MoneyProviderSummary for _, provider := range moneyProviders { - balance, err := u.db.GetMoneyPoolBalance(provider.ID, false) - if err != nil { - log.Printf("MoneyProvider ID %s の残高取得時にエラーが発生しました。エラーを記録し、次のプロバイダーに続けます: %v", provider.ID, err) - continue - } providersSummary = append(providersSummary, MoneyProviderSummary{ ID: provider.ID, Name: provider.Name, - Balance: balance, + Balance: provider.Balance, }) - log.Printf("MoneyProvider ID %s: 名前:%s, 残高:%f", provider.ID, provider.Name, balance) + log.Printf("MoneyProvider ID %s: 名前:%s, 残高:%f", provider.ID, provider.Name, provider.Balance) } log.Printf("ユーザーID %s のMoneyProvidersの概要取得が完了しました。", userID)