Browse Source

Merge pull request #90 from vernu/hot-fix-jun-8

prevent device deactivation during new version update
pull/91/head
Israel Abebe 9 months ago
committed by GitHub
parent
commit
50e7b7536d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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( return await this.deviceModel.findByIdAndUpdate(
deviceId, deviceId,
{ $set: input }, { $set: input },

Loading…
Cancel
Save