Skip to content

Commit

Permalink
feat: add companyId to transaction row (#166)
Browse files Browse the repository at this point in the history
* feat: add companyId to transaction row

---------

Co-authored-by: Daniel Hauser <36034483+daniel-hauser@users.noreply.github.com>
  • Loading branch information
gczobel and daniel-hauser authored Sep 1, 2023
1 parent 5290075 commit 4b840df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ function resultsToTransactions(
for (let tx of account.txns) {
txns.push({
...tx,
hash: transactionHash(tx, companyId, account.accountNumber),
account: account.accountNumber,
companyId,
hash: transactionHash(tx, companyId, account.accountNumber),
});
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ export type AccountConfig = ScraperCredentials & {
};

export interface TransactionRow extends Transaction {
hash: string;
account: string;
companyId: CompanyTypes;
hash: string;
}

export interface AccountScrapeResult {
Expand Down

0 comments on commit 4b840df

Please sign in to comment.