add water heater type for the schedule

This commit is contained in:
faris Aljohari
2024-09-23 03:29:03 -05:00
parent ce831d4ff7
commit 9145935c5c

View File

@ -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',