Skip to content

Commit

Permalink
add condition for erc20 import
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Jan 19, 2024
1 parent edcaba6 commit 3b4c08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/cronJobs/importLostDonationsJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const importLostDonations = async () => {
.andWhere(`token.networkId = :networkId`, { networkId })
.getOne();

if (tokenInDB) {
if (transactionData && tokenInDB) {
// It's a token transfer donation
donationParams = await getDonationDetailForTokenTransfer(
tx,
Expand Down

0 comments on commit 3b4c08f

Please sign in to comment.