Skip to content

Commit 8baef1a

Browse files
authored
Merge pull request #3424 from DFXswiss/develop
Release: develop -> main
2 parents 997f011 + d4587d3 commit 8baef1a

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = class AddArkBtcToBaseFees1773434400000 {
2+
name = 'AddArkBtcToBaseFees1773434400000';
3+
4+
async up(queryRunner) {
5+
// Add Ark/BTC (asset 426) to all Tier2 base fees that use explicit asset lists
6+
await queryRunner.query(`
7+
UPDATE "dbo"."fee"
8+
SET "assets" = "assets" + ';426'
9+
WHERE "id" IN (4, 5, 6, 10, 11, 12, 16, 17, 18)
10+
AND ';' + "assets" + ';' NOT LIKE '%;426;%'
11+
`);
12+
}
13+
14+
async down(queryRunner) {
15+
await queryRunner.query(`
16+
UPDATE "dbo"."fee"
17+
SET "assets" = REPLACE("assets", ';426', '')
18+
WHERE "id" IN (4, 5, 6, 10, 11, 12, 16, 17, 18)
19+
`);
20+
}
21+
};

src/subdomains/generic/user/models/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class AuthService {
188188
type: RecommendationType.INVITATION,
189189
method: RecommendationMethod.MAIL,
190190
});
191-
await this.recommendationService.setRecommenderRefCode(recommendation);
191+
if (recommendation) await this.recommendationService.setRecommenderRefCode(recommendation);
192192
}
193193

194194
await this.checkIpBlacklistFor(user.userData, userIp);

0 commit comments

Comments
 (0)