Browse Source

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

pull/78/head
isra el 9 months ago
parent
commit
2809d2bd51
  1. 2
      api/src/gateway/gateway.service.ts

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

Loading…
Cancel
Save