fix(contribution): 修复 SystemAccountSyncedEvent 缺少 baseType/regionCode 参数

问题:
- admin.controller.ts 中 republishSystemAccounts 端点调用 SystemAccountSyncedEvent 时
  只传递了 4 个参数,但构造函数需要 6 个参数
- 缺少 baseType(基础类型)和 regionCode(区域代码)参数

修复:
- 添加 account.baseType 和 account.regionCode 参数
- 与 contribution-calculation.service.ts 中的调用保持一致

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-20 20:12:49 -08:00
parent 09b0bc077e
commit 5f2f223f7b
1 changed files with 2 additions and 0 deletions

View File

@ -438,6 +438,8 @@ export class AdminController {
const events = systemAccounts.map((account) => {
const event = new SystemAccountSyncedEvent(
account.accountType,
account.baseType, // 基础类型
account.regionCode, // 区域代码
account.name,
account.contributionBalance.toString(),
account.createdAt,