Skip to content

Commit

Permalink
Merge pull request #64 from bcgov/fix/add-logs
Browse files Browse the repository at this point in the history
Fix/add logs
  • Loading branch information
hannah-macdonald1 authored Jan 7, 2025
2 parents 886ec9b + 0c21b53 commit f71cf09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/guards/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ export class AuthService {
response = await firstValueFrom(
this.httpService.get(url, { params, headers }),
);

this.logger.log(response);
const idir =
response.data['items'][0][
this.configService.get<string>(`upstreamAuth.${recordType}.idirField`)
];
this.logger.log(idir);
if (idir === undefined) {
this.logger.error(
`${this.configService.get<string>(`upstreamAuth.${recordType}.idirField`)} field not found in request`,
Expand Down

0 comments on commit f71cf09

Please sign in to comment.