File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
backend/src/database/repositories Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -903,8 +903,14 @@ class OrganizationRepository {
903
903
dateEnd : new Date ( Math . max . apply ( null , endDates ) ) . toISOString ( ) ,
904
904
memberId : memberOrganization . memberId ,
905
905
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 ,
908
914
} )
909
915
910
916
// we'll delete all roles that intersect with incoming org member roles and create a merged role
You can’t perform that action at this time.
0 commit comments