Merged PR 549: Usersタブを開けないBugの修正

## 概要
[Task3019: 修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3019)
- 単体ユーザー取得の際、Selectを用いて必要なパラメータを指定していなかったので必須パラメータが欠けた状態で取得され、それがキャッシュされてしまった
  - ※キャッシュ実装時、Selectなしだと全部取れると勘違いしていた

## レビューポイント
- 修正内容は妥当か?

## 動作確認状況
- ローカルで確認
This commit is contained in:
湯本 開 2023-11-02 06:00:36 +00:00
parent da31ae441f
commit 18757e3243

View File

@ -197,7 +197,10 @@ export class AdB2cService {
}
// キャッシュ上に存在していなければ、ADB2Cから取得してキャッシュに保存する
const user = await this.graphClient.api(`users/${externalId}`).get();
const user = await this.graphClient
.api(`users/${externalId}`)
.select(['id', 'displayName', 'identities'])
.get();
await this.redisService.set(key, user, this.ttl);
this.logger.log(`[ADB2C GET] externalId: ${externalId}`);