Skip to content

Commit 84468ab

Browse files
authored
Ninom5/email fix (#256)
* Fix? * fix?
1 parent 4647951 commit 84468ab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/api/src/email/email.controller.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ export class EmailController {
6464

6565
@Get('logo')
6666
async getImageLogo(@Res() res: Response) {
67-
const imagePath = join(__dirname, 'logo', 'dump-logo-internship.png');
67+
const imagePath = join(
68+
process.cwd(),
69+
'apps',
70+
'api',
71+
'dist',
72+
'logo',
73+
'dump-logo-internship.png',
74+
);
75+
6876
console.log('ImagePath: ', imagePath);
6977

7078
if (fs.existsSync(imagePath)) {

0 commit comments

Comments
 (0)