|
|
@@ -279,7 +279,8 @@ export class WorkService {
|
|
|
if (Object.keys(accountUpdate).length > 0) {
|
|
|
await this.accountRepository.update(account.id, accountUpdate as any);
|
|
|
logger.info(`[SyncAccountWorks] Updated account info: ${Object.keys(accountUpdate).join(', ')}`);
|
|
|
- wsManager.sendToUser(userId, 'account:info_updated', {
|
|
|
+ // Bug #6075: 改用前端监听的 ACCOUNT_DATA_CHANGED 事件,确保前端能刷新账号数据(头像、昵称等)
|
|
|
+ wsManager.sendToUser(userId, WS_EVENTS.ACCOUNT_DATA_CHANGED, {
|
|
|
accountId: account.id,
|
|
|
...accountUpdate,
|
|
|
});
|