Browse Source

fix(api): fix device deactivation issue during new version update

pull/90/head
isra el 9 months ago
parent
commit
d868b43d52
  1. 4
      api/src/gateway/gateway.service.ts

4
api/src/gateway/gateway.service.ts

@ -77,6 +77,10 @@ export class GatewayService {
)
}
if (input.enabled !== false) {
input.enabled = true;
}
return await this.deviceModel.findByIdAndUpdate(
deviceId,
{ $set: input },

Loading…
Cancel
Save