Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

providerのバグ修正 #32

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions back/usecase/moneyprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down