Merge pull request #116 from bigcapitalhq/BIG-427-fix-sending-invite-email

fix(server): sending invite email
This commit is contained in:
Ahmed Bouhuolia
2023-05-05 00:30:24 +02:00
committed by GitHub
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');
}
}