diff --git a/libs/common/src/constants/product-type.enum.ts b/libs/common/src/constants/product-type.enum.ts index bff76e3..834dac4 100644 --- a/libs/common/src/constants/product-type.enum.ts +++ b/libs/common/src/constants/product-type.enum.ts @@ -7,4 +7,5 @@ export enum ProductType { THREE_G = '3G', TWO_G = '2G', ONE_G = '1G', + WH = 'WH', } diff --git a/src/schedule/services/schedule.service.ts b/src/schedule/services/schedule.service.ts index 1f9e224..866e279 100644 --- a/src/schedule/services/schedule.service.ts +++ b/src/schedule/services/schedule.service.ts @@ -150,7 +150,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',