Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions migration/1773434400000-AddArkBtcToBaseFees.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = class AddArkBtcToBaseFees1773434400000 {
name = 'AddArkBtcToBaseFees1773434400000';

async up(queryRunner) {
// Add Ark/BTC (asset 426) to all Tier2 base fees that use explicit asset lists
await queryRunner.query(`
UPDATE "dbo"."fee"
SET "assets" = "assets" + ';426'
WHERE "id" IN (4, 5, 6, 10, 11, 12, 16, 17, 18)
AND ';' + "assets" + ';' NOT LIKE '%;426;%'
`);
}

async down(queryRunner) {
await queryRunner.query(`
UPDATE "dbo"."fee"
SET "assets" = REPLACE("assets", ';426', '')
WHERE "id" IN (4, 5, 6, 10, 11, 12, 16, 17, 18)
`);
}
};
2 changes: 1 addition & 1 deletion src/subdomains/generic/user/models/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class AuthService {
type: RecommendationType.INVITATION,
method: RecommendationMethod.MAIL,
});
await this.recommendationService.setRecommenderRefCode(recommendation);
if (recommendation) await this.recommendationService.setRecommenderRefCode(recommendation);
}

await this.checkIpBlacklistFor(user.userData, userIp);
Expand Down
Loading