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

Commit

Permalink
Removed optional chaining from relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo-Avalos-Ribas committed Jun 18, 2024
1 parent efc0b09 commit 4ea1020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/steps/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function createIncidentAssigneeRelationship(
fromType: Entities.INCIDENT._type,
fromKey: incident.sys_id,
toType: Entities.USER._type,
toKey: incident.assigned_to?.value,
toKey: incident.assigned_to.value,
});
}

Expand All @@ -118,7 +118,7 @@ export function createGroupGroupRelationship(
return createDirectRelationship({
_class: RelationshipClass.HAS,
fromType: Entities.GROUP._type,
fromKey: groupLink?.value,
fromKey: groupLink.value,
toType: Entities.GROUP._type,
toKey: groupEntity._key,
});
Expand All @@ -130,9 +130,9 @@ export function createGroupUserRelationship(
return createDirectRelationship({
_class: RelationshipClass.HAS,
fromType: Entities.GROUP._type,
fromKey: groupUser.group?.value,
fromKey: groupUser.group.value,
toType: Entities.USER._type,
toKey: groupUser.user?.value,
toKey: groupUser.user.value,
properties: convertCommonServiceNowProperties(groupUser),
});
}

0 comments on commit 4ea1020

Please sign in to comment.