mirror of
https://github.com/vernu/textbee.git
synced 2026-02-20 07:34:00 -05:00
chore(api): disable updating existing device with same model and buildId in register device api
This commit is contained in:
@@ -43,7 +43,7 @@ export class GatewayService {
|
||||
buildId: input.buildId,
|
||||
})
|
||||
|
||||
if (device) {
|
||||
if (device && device.appVersionCode <= 11) {
|
||||
return await this.updateDevice(device._id.toString(), {
|
||||
...input,
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user