fix(identity-service): 修复动态import导致的模块解析错误
将动态 import('@/domain/value-objects') 改为静态 import
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4de96dac9d
commit
6216a1563a
|
|
@ -27,6 +27,7 @@ import {
|
||||||
USER_ACCOUNT_REPOSITORY,
|
USER_ACCOUNT_REPOSITORY,
|
||||||
} from '@/domain/repositories/user-account.repository.interface';
|
} from '@/domain/repositories/user-account.repository.interface';
|
||||||
import { Inject } from '@nestjs/common';
|
import { Inject } from '@nestjs/common';
|
||||||
|
import { UserId } from '@/domain/value-objects';
|
||||||
|
|
||||||
// Redis key prefix
|
// Redis key prefix
|
||||||
const KEYGEN_STATUS_PREFIX = 'keygen:status:';
|
const KEYGEN_STATUS_PREFIX = 'keygen:status:';
|
||||||
|
|
@ -290,9 +291,7 @@ export class WalletRetryTask {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 1. 获取用户账号信息
|
// 1. 获取用户账号信息
|
||||||
const userIdObj = await import('@/domain/value-objects').then((m) =>
|
const userIdObj = UserId.create(BigInt(userId));
|
||||||
m.UserId.create(BigInt(userId)),
|
|
||||||
);
|
|
||||||
const account = await this.userRepository.findById(userIdObj);
|
const account = await this.userRepository.findById(userIdObj);
|
||||||
|
|
||||||
if (!account) {
|
if (!account) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue