From 9145935c5cd502c83828ffccda9bcd16466b2c97 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 23 Sep 2024 03:29:03 -0500 Subject: [PATCH] add water heater type for the schedule --- src/schedule/services/schedule.service.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/schedule/services/schedule.service.ts b/src/schedule/services/schedule.service.ts index 866e279..c4717e6 100644 --- a/src/schedule/services/schedule.service.ts +++ b/src/schedule/services/schedule.service.ts @@ -48,7 +48,8 @@ export class ScheduleService { if ( deviceDetails.productDevice.prodType !== ProductType.THREE_G && deviceDetails.productDevice.prodType !== ProductType.ONE_G && - deviceDetails.productDevice.prodType !== ProductType.TWO_G + deviceDetails.productDevice.prodType !== ProductType.TWO_G && + deviceDetails.productDevice.prodType !== ProductType.WH ) { throw new HttpException( 'This device is not supported for schedule', @@ -101,7 +102,8 @@ export class ScheduleService { if ( deviceDetails.productDevice.prodType !== ProductType.THREE_G && deviceDetails.productDevice.prodType !== ProductType.ONE_G && - deviceDetails.productDevice.prodType !== ProductType.TWO_G + deviceDetails.productDevice.prodType !== ProductType.TWO_G && + deviceDetails.productDevice.prodType !== ProductType.WH ) { throw new HttpException( 'This device is not supported for schedule', @@ -214,7 +216,8 @@ export class ScheduleService { if ( deviceDetails.productDevice.prodType !== ProductType.THREE_G && deviceDetails.productDevice.prodType !== ProductType.ONE_G && - deviceDetails.productDevice.prodType !== ProductType.TWO_G + deviceDetails.productDevice.prodType !== ProductType.TWO_G && + deviceDetails.productDevice.prodType !== ProductType.WH ) { throw new HttpException( 'This device is not supported for schedule',