Merge pull request #102 from SyncrowIOT/fix-water-heater-schedule-issue

add water heater type for the schedule
This commit is contained in:
faris Aljohari
2024-09-23 11:29:31 +03:00
committed by GitHub
+6 -3
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',