From 6d56255a5a44040fe764b4a863efdf4d061adaa9 Mon Sep 17 00:00:00 2001 From: "maruyama.t" Date: Wed, 28 Feb 2024 09:04:36 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20792:=20parent=5Faccount=5Fid?= =?UTF-8?q?=E3=81=8C=E6=AD=A3=E3=81=97=E3=81=8F=E8=A8=AD=E5=AE=9A=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task3804: parent_account_idが正しく設定されない](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3804) Map配列からaccountidをキーにdealerAccountIdを取る処理で、検索keyが逆になっていたため修正。 ## レビューポイント - とくになし ## 動作確認状況 - ローカルで確認(階層を付け替えたアカウントの親子階層が正しいことを確認) ## 補足 - 相談、参考資料などがあれば --- .../server/src/features/transfer/transfer.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data_migration_tools/server/src/features/transfer/transfer.service.ts b/data_migration_tools/server/src/features/transfer/transfer.service.ts index cf8dd53..34102cb 100644 --- a/data_migration_tools/server/src/features/transfer/transfer.service.ts +++ b/data_migration_tools/server/src/features/transfer/transfer.service.ts @@ -247,8 +247,7 @@ export class TransferService { // Countryのレコードは除外する if (account.type !== MIGRATION_TYPE.COUNTRY) { const dealerAccountId = - dealerRecords.get(account.dealerAccountId) ?? - account.dealerAccountId; + dealerRecords.get(account.accountId) ?? account.dealerAccountId; const type = this.getAccountType(account.type); const newAccount: AccountsFile = { accountId: account.accountId,