diff --git a/service/src/common/email-template-payload/community.invitation.virtual.contributor.created.email.payload.ts b/service/src/common/email-template-payload/community.invitation.virtual.contributor.created.email.payload.ts index f2805d6d..00ad4449 100644 --- a/service/src/common/email-template-payload/community.invitation.virtual.contributor.created.email.payload.ts +++ b/service/src/common/email-template-payload/community.invitation.virtual.contributor.created.email.payload.ts @@ -1,12 +1,7 @@ -import { BaseJourneyEmailPayload } from './base.journey.email.payload'; +import { CommunityInvitationCreatedEmailPayload } from './community.invitation.created.email.payload'; export interface CommunityInvitationVirtualContributorCreatedEmailPayload - extends BaseJourneyEmailPayload { - inviter: { - name: string; - firstName: string; - url: string; - }; + extends CommunityInvitationCreatedEmailPayload { virtualContributor: { name: string; url: string; diff --git a/service/src/services/domain/builders/community-invitation-virtual-contributor-created/community.invitation.virtual.contributor.created.notification.builder.ts b/service/src/services/domain/builders/community-invitation-virtual-contributor-created/community.invitation.virtual.contributor.created.notification.builder.ts index 91cd7e6b..f358b637 100644 --- a/service/src/services/domain/builders/community-invitation-virtual-contributor-created/community.invitation.virtual.contributor.created.notification.builder.ts +++ b/service/src/services/domain/builders/community-invitation-virtual-contributor-created/community.invitation.virtual.contributor.created.notification.builder.ts @@ -71,7 +71,8 @@ export class CommunityInvitationVirtualContributorCreatedNotificationBuilder inviter: { firstName: inviter.firstName, name: inviter.profile.displayName, - url: inviter.profile.url, + profile: inviter.profile.url, + email: inviter.email, }, recipient: { firstName: recipient.firstName, @@ -90,6 +91,8 @@ export class CommunityInvitationVirtualContributorCreatedNotificationBuilder platform: { url: eventPayload.platform.url, }, + welcomeMessage: eventPayload.welcomeMessage, + spaceAdminURL: eventPayload.space.adminURL, }; } } diff --git a/service/src/templates/community.invitation.created.vc.host.js b/service/src/templates/community.invitation.created.vc.host.js index 684ee8fb..51835abc 100644 --- a/service/src/templates/community.invitation.created.vc.host.js +++ b/service/src/templates/community.invitation.created.vc.host.js @@ -13,6 +13,10 @@ module.exports = () => ({ html: `{% extends "src/templates/_layouts/email-transactional.html" %} {% block content %}Hi {{recipient.firstName}},
{{inviter.name}} has invited your Virtual Contributor {{virtualContributor.name}} to join {{space.displayName}}. +
+
{{welcomeMessage}}
+
+ Please visit the platform to accept or decline

{% endblock %} ${templates.footerBlock}`, },