class CompetitionSetupStakeholderServiceImpl extends BaseTransactionalService implements CompetitionSetupStakeholderService {

    @Override
    @Transactional
    public ServiceResult<List<UserResource>> findPendingStakeholderInvites(long competitionId) {
        List<StakeholderInvite> pendingStakeholderInvites = stakeholderInviteRepository.findByCompetitionIdAndStatus(competitionId, SENT);

        List<UserResource> pendingStakeholderInviteUsers = simpleMap(pendingStakeholderInvites,
                pendingStakeholderInvite -> convert(pendingStakeholderInvite));

        return serviceSuccess(pendingStakeholderInviteUsers);
    }

}