Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Transaction History Store - #16

Open
patche-v wants to merge 23 commits into
masterfrom
transaction-history-store
Open

Transaction History Store#16
patche-v wants to merge 23 commits into
masterfrom
transaction-history-store

Conversation

@patche-v

Copy link
Copy Markdown
Contributor

Transaction History Store

@patche-v
patche-v requested a review from djale1k January 21, 2020 09:54
@patche-v patche-v changed the title Transaction History Store Transaction History Store Insert Jan 21, 2020
@patche-v patche-v changed the title Transaction History Store Insert Transaction History Store Jan 21, 2020
Comment thread BankAccount/pkg/store/transactionhistory.go Outdated
Comment thread BankAccount/pkg/store/transactionhistory.go Outdated
Comment thread BankAccount/pkg/store/transactionhistory.go Outdated
Comment thread BankAccount/pkg/store/transactionhistory.go Outdated
Comment thread BankAccount/pkg/store/transactionhistory.go Outdated
store := store.NewTransactionHistoryStoreModel(suite.Db)
var err error
var transact []*entities.TransactionHistory
for _, value := range suite.TransactionsP {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vpatcev18 why do we need to iterate the transactions here?

transact, err = store.GetTransactionsById(value.UserId)

This will fetch transactions multiple times for the same user ID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants