chore(api): disable updating existing device with same model and buildId in register device api

This commit is contained in:
isra el
2025-05-28 12:38:33 +03:00
parent 56fb4b2945
commit 2809d2bd51

View File

@@ -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,