From a289b1645c98c736ce58ffc77931e13f808f52e4 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:28:13 +0300 Subject: [PATCH] Refactor device controller method names --- src/device/controllers/device.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device/controllers/device.controller.ts b/src/device/controllers/device.controller.ts index 936b8e1..136e94f 100644 --- a/src/device/controllers/device.controller.ts +++ b/src/device/controllers/device.controller.ts @@ -57,9 +57,9 @@ export class DeviceController { @ApiBearerAuth() @UseGuards(JwtAuthGuard) @Get(':deviceId') - async getDevicesByDeviceId(@Param('deviceId') deviceId: string) { + async getDeviceDetailsByDeviceId(@Param('deviceId') deviceId: string) { try { - return await this.deviceService.getDevicesByDeviceId(deviceId); + return await this.deviceService.getDeviceDetailsByDeviceId(deviceId); } catch (err) { throw new Error(err); } @@ -67,9 +67,9 @@ export class DeviceController { @ApiBearerAuth() @UseGuards(JwtAuthGuard) @Get(':deviceId/functions') - async getDevicesInstructionByDeviceId(@Param('deviceId') deviceId: string) { + async getDeviceInstructionByDeviceId(@Param('deviceId') deviceId: string) { try { - return await this.deviceService.getDevicesInstructionByDeviceId(deviceId); + return await this.deviceService.getDeviceInstructionByDeviceId(deviceId); } catch (err) { throw new Error(err); }