fix(subaccount): fixed mail parameters
MODIFY
src/server/rest/v1/service/BillingService.ts
src/server/rest/v1/service/BillingService.ts
@@ -514,7 +514,7 @@ export default class BillingService {
// Save the sub account
subAccount.id = await BillingStorage.saveSubAccount(req.tenant, subAccount);
// Notify the user by mail
- void NotificationHandler.sendBillingSubAccountCreationLink(req.tenant, Utils.generateUUID(), user, { onboardingLink: subAccount.activationLink });
+ void NotificationHandler.sendBillingSubAccountCreationLink(req.tenant, Utils.generateUUID(), user, { onboardingLink: subAccount.activationLink, evseDashboardURL: Utils.buildEvseURL(req.tenant.subdomain), user });
res.status(StatusCodes.CREATED).json(subAccount);
next();
}

MODIFY
src/types/UserNotifications.ts
src/types/UserNotifications.ts
@@ -298,6 +298,8 @@ export interface BillingNewInvoiceNotification extends BaseNotification {
export interface BillingSubAccountCreationLink extends BaseNotification {
onboardingLink: string;
+ evseDashboardURL: string;
+ user: User;
}
export interface CarCatalogSynchronizationFailedNotification extends BaseNotification {

fix(subaccount): fixed mail parameters