Skip to content

Commit

Permalink
add check for undefined transaction (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfaur09 authored Jun 29, 2023
1 parent 3e0fd0f commit de119fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/indexer/elastic/elastic.indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export class ElasticIndexerService implements IndexerInterface {
}

private processTransaction(transaction: any) {
if (!transaction.function) {
if (transaction && !transaction.function) {
transaction.function = transaction.operation;
}
}
Expand Down

0 comments on commit de119fb

Please sign in to comment.