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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
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 }, |
|
|
|