Merged PR 792: parent_account_idが正しく設定されない
## 概要 [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が逆になっていたため修正。 ## レビューポイント - とくになし ## 動作確認状況 - ローカルで確認(階層を付け替えたアカウントの親子階層が正しいことを確認) ## 補足 - 相談、参考資料などがあれば
This commit is contained in:
parent
0be9c26f09
commit
6d56255a5a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user