1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +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, templateName: string,
format: TemplateFormat, format: TemplateFormat,
): string { ): string {
let topPath = path.resolve('mailtemplates'); const topPath = path.resolve(__dirname, '../../mailtemplates');
if (!existsSync(topPath)) {
topPath = path.resolve('dist', 'mailtemplates');
}
const template = path.join( const template = path.join(
topPath, topPath,
templateName, templateName,