mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Merge pull request #99 from SyncrowIOT/SP-603-be-implement-scheduling-for-the-water-heater
Add water heater type for the schedule
This commit is contained in:
@ -7,4 +7,5 @@ export enum ProductType {
|
||||
THREE_G = '3G',
|
||||
TWO_G = '2G',
|
||||
ONE_G = '1G',
|
||||
WH = 'WH',
|
||||
}
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user