Skip to content

Commit

Permalink
Merge pull request #268 from d-rec/DR-812
Browse files Browse the repository at this point in the history
DR-812:added internalexternal id in get my devcie api response
  • Loading branch information
NamrataSweya authored May 24, 2024
2 parents 3e4f268 + 2d2aca9 commit 483a917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/drec-api/src/pods/device/device.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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'];
Expand Down

0 comments on commit 483a917

Please sign in to comment.