mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2025-07-01 14:37:09 +02:00
remove those
This commit is contained in:
parent
c3565b5b34
commit
dbdbbb72ee
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ router.get(
|
|||
res.set('Content-Disposition', `attachment; filename=${attachment.filename}`);
|
||||
res.set('Content-Type', attachment.contentType);
|
||||
res.send(attachment.content);
|
||||
return; // Add this line to exit the function after sending the response
|
||||
return;
|
||||
} else {
|
||||
res.render(
|
||||
'error',
|
||||
|
@ -124,7 +124,7 @@ router.get(
|
|||
madebysite: config.http.branding[2],
|
||||
}
|
||||
);
|
||||
return; // Add this line to exit the function after rendering the error page
|
||||
return;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('error while fetching attachment', error);
|
||||
|
|
Loading…
Add table
Reference in a new issue