diff --git a/dictation_server/src/features/auth/auth.service.ts b/dictation_server/src/features/auth/auth.service.ts index 5bf1911..cae01fa 100644 --- a/dictation_server/src/features/auth/auth.service.ts +++ b/dictation_server/src/features/auth/auth.service.ts @@ -343,7 +343,7 @@ export class AuthService { ): Promise { this.logger.log( `[IN] [${context.trackingId}] ${this.isAcceptedLatestVersion.name} | params: { ` + - `idToken: ${idToken}, };`, + `idToken.sub: ${idToken.sub}, };`, ); try { diff --git a/dictation_server/src/repositories/users/users.repository.service.ts b/dictation_server/src/repositories/users/users.repository.service.ts index 16555c2..1868c94 100644 --- a/dictation_server/src/repositories/users/users.repository.service.ts +++ b/dictation_server/src/repositories/users/users.repository.service.ts @@ -337,7 +337,8 @@ export class UsersRepositoryService { return await this.dataSource.transaction(async (entityManager) => { const repo = entityManager.getRepository(User); - const accountId = (await repo.findOne({ where: { external_id } }))?.account_id; + const accountId = (await repo.findOne({ where: { external_id } })) + ?.account_id; if (!accountId) { throw new AccountNotFoundError('Account is Not Found.'); @@ -470,9 +471,9 @@ export class UsersRepositoryService { }, }); - if (!latestEulaInfo || !latestDpaInfo) { + if (!latestEulaInfo.version || !latestDpaInfo.version) { throw new TermInfoNotFoundError( - `Terms info is not found. latestEulaInfo: ${latestEulaInfo}, latestDpaInfo: ${latestDpaInfo}`, + `Terms info is not found. latestEulaInfo: ${latestEulaInfo.version}, latestDpaInfo: ${latestDpaInfo.version}`, ); }