emails - various fixes
MODIFY
src/integration/smart-charging/SmartChargingIntegration.ts
src/integration/smart-charging/SmartChargingIntegration.ts
@@ -140,7 +140,7 @@ export default abstract class SmartChargingIntegration<T extends SmartChargingSe
siteAreaID: chargingProfile.chargingStation?.siteAreaID,
companyID: chargingProfile.chargingStation?.companyID,
siteAreaName: siteAreaName,
- evseDashboardURL: Utils.buildEvseURL()
+ evseDashboardURL: Utils.buildEvseURL(tenant.subdomain);
});
return false;
}

MODIFY
src/notification/email/EMailNotificationTask.ts
src/notification/email/EMailNotificationTask.ts
@@ -83,8 +83,10 @@ export default class EMailNotificationTask implements NotificationTask {
}
public async sendEndOfSignedSession(data: EndOfSignedSessionNotification, user: User, tenant: Tenant, severity: NotificationSeverity): Promise<NotificationResult> {
- data.buttonUrl = data.evseDashboardURL;
- return await this.prepareAndSendEmail('end-of-signed-session', data, user, tenant, severity);
+ // TBC - This one is confusing and inconsistent - Users are getting data in German only!
+ return Promise.resolve(null);
+ // data.buttonUrl = data.evseDashboardURL;
+ // return await this.prepareAndSendEmail('end-of-signed-session', data, user, tenant, severity);
}
public async sendChargingStationStatusError(data: ChargingStationStatusErrorNotification, user: User, tenant: Tenant, severity: NotificationSeverity): Promise<NotificationResult> {

MODIFY
src/server/rest/v1/service/NotificationService.ts
src/server/rest/v1/service/NotificationService.ts
@@ -70,7 +70,7 @@ export default class NotificationService {
name: Utils.buildUserFullName(user, false, false),
errorTitle: filteredRequest.subject,
errorDescription: filteredRequest.description,
- evseDashboardURL: Utils.buildEvseURL(),
+ evseDashboardURL: Utils.buildEvseURL(req.tenant?.subdomain),
};
// Notify
void NotificationHandler.sendEndUserErrorNotification(req.tenant, endUserErrorNotification);

emails - various fixes