diff --git a/apps/drec-api/src/pods/device/device.service.ts b/apps/drec-api/src/pods/device/device.service.ts index cb083c1a8..f1dad7086 100755 --- a/apps/drec-api/src/pods/device/device.service.ts +++ b/apps/drec-api/src/pods/device/device.service.ts @@ -183,8 +183,10 @@ export class DeviceService { const currentPage = pagenumber; const newDevices = []; await devices.map((device: Device) => { + device['internalexternalId'] = device.externalId; device.externalId = device.developerExternalId; delete device['developerExternalId']; + delete device['organization']; newDevices.push(device); @@ -206,6 +208,7 @@ export class DeviceService { //devices.externalId = devices.developerExternalId const newDevices = []; await devices.map((device: Device) => { + device['internalexternalId'] = device.externalId; device.externalId = device.developerExternalId; delete device['developerExternalId']; delete device['organization'];