fix(server): sending invite email

This commit is contained in:
a.bouhuolia
2023-05-05 00:28:57 +02:00
parent 4d44ce4c7f
commit 3ceb9adda2
11 changed files with 60 additions and 34 deletions

View File

@@ -109,7 +109,7 @@ export default class Mail {
* Retrieve view content from the view directory.
*/
private getViewContent(): string {
const filePath = path.join(global.__root_dir, `../views/${this.view}`);
const filePath = path.join(global.__views_dir, `/${this.view}`);
return fs.readFileSync(filePath, 'utf8');
}
}