class ReviewInviteServiceImpl extends InviteService<ReviewInvite> implements ReviewInviteService {

    @Override
    @Transactional
    public ServiceResult<Void> resendInvites(List<Long> inviteIds, AssessorInviteSendResource assessorInviteSendResource) {
        String customTextPlain = stripHtml(assessorInviteSendResource.getContent());
        String customTextHtml = plainTextToHtml(customTextPlain);

        return ServiceResult.processAnyFailuresOrSucceed(simpleMap(
                reviewInviteRepository.getByIdIn(inviteIds),
                invite -> {
                    updateParticipantStatus(invite);

                    return sendInviteNotification(
                            assessorInviteSendResource.getSubject(),
                            customTextPlain,
                            customTextHtml,
                            invite.sendOrResend(loggedInUserSupplier.get(), now()),
                            Notifications.INVITE_ASSESSOR_GROUP_TO_PANEL
                    );
                }
        ));
    }

}