From 2809d2bd51f2c2c9ebc07ab275bb200cc658bd7c Mon Sep 17 00:00:00 2001 From: isra el Date: Wed, 28 May 2025 12:38:33 +0300 Subject: [PATCH] chore(api): disable updating existing device with same model and buildId in register device api --- api/src/gateway/gateway.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/gateway/gateway.service.ts b/api/src/gateway/gateway.service.ts index e47cc92..3866c36 100644 --- a/api/src/gateway/gateway.service.ts +++ b/api/src/gateway/gateway.service.ts @@ -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,