Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2222 from bandprotocol/fix-account-transactions-t…
Browse files Browse the repository at this point in the history
…able-name

fixed: account_transactions table name
  • Loading branch information
Sawit Trisirisatayawong authored Jul 13, 2020
2 parents 13533ec + c77c923 commit 829605f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

### Emitter & Flusher

- (bugs) [\#2222](https://github.com/bandprotocol/bandchain/pull/2222) Fix account_transactions table name
- (impv) [\#2196](https://github.com/bandprotocol/bandchain/pull/2196) Fix create view table command
- (impv) [\#2186](https://github.com/bandprotocol/bandchain/pull/2186) Add temporary view tables.
- (bugs) [\#2192](https://github.com/bandprotocol/bandchain/pull/2192) Add `commission_amount` field to Withdraw Commission Reward.
Expand All @@ -40,8 +41,8 @@

### Scan

- (bug) [\#2119](https://github.com/bandprotocol/bandchain/pull/2119) Fix matching order on search.
- (bug) [\#2061](https://github.com/bandprotocol/bandchain/pull/2061) Fix wrong delegation count on account index
- (bugs) [\#2119](https://github.com/bandprotocol/bandchain/pull/2119) Fix matching order on search.
- (bugs) [\#2061](https://github.com/bandprotocol/bandchain/pull/2061) Fix wrong delegation count on account index

### Bridges

Expand Down
4 changes: 2 additions & 2 deletions flusher/flusher/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def Column(*args, **kwargs):
Column("amount", sa.DECIMAL),
)

account_transcations = sa.Table(
"account_transcations",
account_transactions = sa.Table(
"account_transactions",
metadata,
Column("transaction_id", sa.Integer, sa.ForeignKey("transactions.id"), primary_key=True),
Column("account_id", sa.Integer, sa.ForeignKey("accounts.id"), primary_key=True),
Expand Down
4 changes: 2 additions & 2 deletions flusher/flusher/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
validator_votes,
unbonding_delegations,
redelegations,
account_transcations,
account_transactions,
)


Expand Down Expand Up @@ -52,7 +52,7 @@ def handle_new_transaction(self, msg):
tx_id = self.get_transaction_id(msg["hash"])
for account in related_tx_accounts:
self.conn.execute(
account_transcations.insert(),
account_transactions.insert(),
{"transaction_id": tx_id, "account_id": self.get_account_id(account)},
)

Expand Down

0 comments on commit 829605f

Please sign in to comment.