1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: loading of emailtemplates

This commit is contained in:
Ivar Conradi Østhus 2021-04-23 14:53:56 +02:00
parent 86cbd58487
commit f261f546cc
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -162,10 +162,7 @@ export class EmailService {
templateName: string,
format: TemplateFormat,
): string {
let topPath = path.resolve('mailtemplates');
if (!existsSync(topPath)) {
topPath = path.resolve('dist', 'mailtemplates');
}
const topPath = path.resolve(__dirname, '../../mailtemplates');
const template = path.join(
topPath,
templateName,