Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from JupiterOne/INT-9900-corrected-duplicated-…
Browse files Browse the repository at this point in the history
…key-handling

Corrected some issues
  • Loading branch information
Gonzalo-Avalos-Ribas authored Nov 15, 2023
2 parents d627ff5 + 12552bb commit 720088e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupiterone/graph-airwatch",
"version": "0.6.2",
"version": "0.6.3",
"description": "A graph conversion tool for https://www.air-watch.com/.",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions src/steps/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export async function fetchProfiles({
{ profileKey: profileEntity._key },
'Duplicated key found',
);
return;
}
await jobState.addEntity(profileEntity);
}, groupEntity._key);
Expand All @@ -56,6 +57,12 @@ export async function buildDeviceProfileRelationships({
const response = await apiClient.fetchProfilesOfDevice(
deviceEntity.deviceId! as string,
);
// we don't have a way to test this - I'm using the model provided by the provider
// but its not working. Let's try loggin the involved keys.
logger.info(
{ objectKeys: Object.keys(response) },
'TEMP - log response keys',
);
for (const profile of response.DeviceProfiles) {
if (
response.DeviceId.Uuid &&
Expand Down

0 comments on commit 720088e

Please sign in to comment.