From 5c7ae159c46dc5de0d95df021b5820fea114f80a Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Tue, 17 Oct 2023 15:28:39 +0530 Subject: [PATCH] refactor return type Signed-off-by: bhavanakarwade Signed-off-by: KulkarniShashank --- apps/user/repositories/user-device.repository.ts | 2 +- apps/user/src/fido/fido.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user/repositories/user-device.repository.ts b/apps/user/repositories/user-device.repository.ts index 5b45fc0a2..f5a78e691 100644 --- a/apps/user/repositories/user-device.repository.ts +++ b/apps/user/repositories/user-device.repository.ts @@ -93,7 +93,7 @@ export class UserDevicesRepository { * @returns Get all device details */ // eslint-disable-next-line camelcase, @typescript-eslint/no-explicit-any - async getfidoMultiDevice(userId: number): Promise { + async getfidoMultiDevice(userId: number): Promise { try { const fidoMultiDevice = await this.prisma.user_devices.findMany({ diff --git a/apps/user/src/fido/fido.service.ts b/apps/user/src/fido/fido.service.ts index 203f7d404..f21a8a164 100644 --- a/apps/user/src/fido/fido.service.ts +++ b/apps/user/src/fido/fido.service.ts @@ -104,7 +104,7 @@ export class FidoService { const credentialIds = []; if (fidoMultiDevice) { for (const iterator of fidoMultiDevice) { - credentialIds.push(iterator.devices.credentialID); + credentialIds.push(iterator.devices['credentialID']); } } else { throw new BadRequestException(ResponseMessages.fido.error.deviceNotFound);