mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
Add water heater type for the schedule
This commit is contained in:
@ -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',
|
||||||
}
|
}
|
||||||
|
@ -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',
|
||||||
|
Reference in New Issue
Block a user