fix(contribution-service): 添加 unlockedBonusTiers 字段到同步事件

事件和 API 返回中缺少 unlockedBonusTiers 字段,导致
mining-admin-service 无法正确显示团队奖励解锁状态

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-12 05:09:01 -08:00
parent 180e5ad057
commit 1b8791fe5d
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export class AdminController {
hasAdopted: true, hasAdopted: true,
directReferralAdoptedCount: true, directReferralAdoptedCount: true,
unlockedLevelDepth: true, unlockedLevelDepth: true,
unlockedBonusTiers: true,
createdAt: true, createdAt: true,
updatedAt: true, updatedAt: true,
}, },
@ -52,6 +53,7 @@ export class AdminController {
hasAdopted: acc.hasAdopted, hasAdopted: acc.hasAdopted,
directReferralAdoptedCount: acc.directReferralAdoptedCount, directReferralAdoptedCount: acc.directReferralAdoptedCount,
unlockedLevelDepth: acc.unlockedLevelDepth, unlockedLevelDepth: acc.unlockedLevelDepth,
unlockedBonusTiers: acc.unlockedBonusTiers,
createdAt: acc.createdAt, createdAt: acc.createdAt,
updatedAt: acc.updatedAt, updatedAt: acc.updatedAt,
})), })),
@ -78,6 +80,7 @@ export class AdminController {
hasAdopted: true, hasAdopted: true,
directReferralAdoptedCount: true, directReferralAdoptedCount: true,
unlockedLevelDepth: true, unlockedLevelDepth: true,
unlockedBonusTiers: true,
createdAt: true, createdAt: true,
}, },
}); });
@ -103,6 +106,7 @@ export class AdminController {
acc.hasAdopted, acc.hasAdopted,
acc.directReferralAdoptedCount, acc.directReferralAdoptedCount,
acc.unlockedLevelDepth, acc.unlockedLevelDepth,
acc.unlockedBonusTiers,
acc.createdAt, acc.createdAt,
); );

View File

@ -16,6 +16,7 @@ export class ContributionAccountSyncedEvent {
public readonly hasAdopted: boolean, public readonly hasAdopted: boolean,
public readonly directReferralAdoptedCount: number, public readonly directReferralAdoptedCount: number,
public readonly unlockedLevelDepth: number, public readonly unlockedLevelDepth: number,
public readonly unlockedBonusTiers: number,
public readonly createdAt: Date, public readonly createdAt: Date,
) {} ) {}
@ -31,6 +32,7 @@ export class ContributionAccountSyncedEvent {
hasAdopted: this.hasAdopted, hasAdopted: this.hasAdopted,
directReferralAdoptedCount: this.directReferralAdoptedCount, directReferralAdoptedCount: this.directReferralAdoptedCount,
unlockedLevelDepth: this.unlockedLevelDepth, unlockedLevelDepth: this.unlockedLevelDepth,
unlockedBonusTiers: this.unlockedBonusTiers,
createdAt: this.createdAt.toISOString(), createdAt: this.createdAt.toISOString(),
}; };
} }