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

Conversation

@patche-v
Copy link
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
store := store.NewTransactionHistoryStoreModel(suite.Db)
var err error
var transact []*entities.TransactionHistory
for _, value := range suite.TransactionsP {
Copy link
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.

3 participants