Skip to content

Commit

Permalink
Merge pull request #270 from d-rec/develop
Browse files Browse the repository at this point in the history
added internalexternal id in get my devcie api response
  • Loading branch information
NamrataSweya authored May 27, 2024
2 parents 39a19e1 + b3da355 commit 676f140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.117
0.0.118

0 comments on commit 676f140

Please sign in to comment.