Add water heater type for the schedule

This commit is contained in:
faris Aljohari
2024-09-17 14:38:14 +03:00
parent 5e3135fb7f
commit 5681a13c59
2 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,5 @@ export enum ProductType {
THREE_G = '3G', THREE_G = '3G',
TWO_G = '2G', TWO_G = '2G',
ONE_G = '1G', ONE_G = '1G',
WH = 'WH',
} }

View File

@ -150,7 +150,8 @@ export class ScheduleService {
if ( if (
deviceDetails.productDevice.prodType !== ProductType.THREE_G && deviceDetails.productDevice.prodType !== ProductType.THREE_G &&
deviceDetails.productDevice.prodType !== ProductType.ONE_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( throw new HttpException(
'This device is not supported for schedule', 'This device is not supported for schedule',