Skip to content

Commit

Permalink
Merge pull request #1766 from Giveth/hotfix-migration
Browse files Browse the repository at this point in the history
hotfix migration
  • Loading branch information
RamRamez authored Aug 16, 2024
2 parents 0ff5b55 + 1ff07cc commit 08bc8f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const transactions: Partial<Donation>[] = [
},
];

export class AddGivArbMissingDonations2_1723799657527
export class AddGivArbMissingDonations2_1723799657528
implements MigrationInterface
{
async up(queryRunner: QueryRunner): Promise<void> {
Expand Down Expand Up @@ -99,13 +99,13 @@ export class AddGivArbMissingDonations2_1723799657527
await calculateGivbackFactor(tx.projectId as number);
await queryRunner.query(`
INSERT INTO donation ("toWalletAddress", "projectId", "fromWalletAddress", "userId", amount, currency, "transactionId", "transactionNetworkId", anonymous, "valueUsd", status,
"segmentNotified", "isTokenEligibleForGivback", "isProjectVerified", "createdAt", "givbackFactor", "powerRound", "projectRank", "bottomRankInRound", "qfRoundId", "tokenAddress", "qfRoundId")
"segmentNotified", "isTokenEligibleForGivback", "isProjectVerified", "createdAt", "givbackFactor", "powerRound", "projectRank", "bottomRankInRound", "qfRoundId", "tokenAddress")
VALUES ('${tx.toWalletAddress?.toLowerCase()}', ${tx.projectId}, '${tx.fromWalletAddress?.toLowerCase()}', ${user.id}, ${tx.amount}, '${tx.currency}', '${tx.transactionId?.toLowerCase()}', ${
tx.transactionNetworkId
}, false, ${tx.valueUsd}, 'verified',
true, ${isTokenEligibleForGivback}, ${project.verified}, '${createdAt}', ${givbackFactor}, ${powerRound}, ${projectRank}, ${bottomRankInRound}, ${tx.qfRoundId || null}, '${
tx.tokenAddress
}', ${tx.qfRoundId || null})
}')
ON CONFLICT DO NOTHING;
`);

Expand Down

0 comments on commit 08bc8f4

Please sign in to comment.