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

Commit

Permalink
Merge pull request #32 from walnuts1018/addemoji
Browse files Browse the repository at this point in the history
providerのバグ修正
  • Loading branch information
wolfmagnate authored Nov 5, 2023
2 parents 7fa209b + b9625d6 commit 341d6d3
Showing 1 changed file with 2 additions and 7 deletions.
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

0 comments on commit 341d6d3

Please sign in to comment.