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:
parent
86cbd58487
commit
f261f546cc
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user