Skip to content

Commit

Permalink
refactor return type
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
bhavanakarwade authored and KulkarniShashank committed Sep 11, 2024
1 parent d627412 commit 5c7ae15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/user/repositories/user-device.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> {
async getfidoMultiDevice(userId: number): Promise<user_devices[]> {
try {

const fidoMultiDevice = await this.prisma.user_devices.findMany({
Expand Down
2 changes: 1 addition & 1 deletion apps/user/src/fido/fido.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5c7ae15

Please sign in to comment.