Skip to content

Commit

Permalink
fix(backend/AccountMoveService): アカウント引っ越しの際にモデレーションノートに空の改行が足される問題を修正 (
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Jan 5, 2025
1 parent 88a361e commit 3307f86
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/backend/src/core/AccountMoveService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,8 @@ export class AccountMoveService {

if (!srcprofile || !dstprofile) return;

await this.userProfilesRepository.update({ userId: dst.id }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote,
});

await this.userProfilesRepository.update({ userId: src.id }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote,
await this.userProfilesRepository.update({ userId: In([src.id, dst.id]) }, {
moderationNote: (srcprofile.moderationNote + '\n' + dstprofile.moderationNote).trim(),
});
}

Expand Down

0 comments on commit 3307f86

Please sign in to comment.