When a SchoolContactRole is created, it fires the SchoolContactRoleCreatedDomainEvent, including the AddToPartnerSchoolTeam handler. This handler should create MSTeamOperations for adding the user to either or both of the Secondary and Primary partner school teams.
It appears that the schools are retrieved without the list of students, meaning that they are not properly identified as either Primary or Secondary schools and the job completes gracefully.
Update code to detect primary or secondary school status properly. Maybe this should be done at the repository layer.
When a SchoolContactRole is created, it fires the SchoolContactRoleCreatedDomainEvent, including the AddToPartnerSchoolTeam handler. This handler should create MSTeamOperations for adding the user to either or both of the Secondary and Primary partner school teams.
It appears that the schools are retrieved without the list of students, meaning that they are not properly identified as either Primary or Secondary schools and the job completes gracefully.
Update code to detect primary or secondary school status properly. Maybe this should be done at the repository layer.