Skip to content

Commit 33e8869

Browse files
author
Misha Savelyev
committed
Fix code formatting
1 parent 0946569 commit 33e8869

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

backend/src/database/repositories/organizationRepository.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,14 @@ class OrganizationRepository {
903903
dateEnd: new Date(Math.max.apply(null, endDates)).toISOString(),
904904
memberId: memberOrganization.memberId,
905905
organizationId: toOrganizationId,
906-
title: foundIntersectingRoles.length > 0 ? foundIntersectingRoles[0].title : memberOrganization.title,
907-
source: foundIntersectingRoles.length > 0 ? foundIntersectingRoles[0].source : memberOrganization.source,
906+
title:
907+
foundIntersectingRoles.length > 0
908+
? foundIntersectingRoles[0].title
909+
: memberOrganization.title,
910+
source:
911+
foundIntersectingRoles.length > 0
912+
? foundIntersectingRoles[0].source
913+
: memberOrganization.source,
908914
})
909915

910916
// we'll delete all roles that intersect with incoming org member roles and create a merged role

0 commit comments

Comments
 (0)