fix: address comment

This commit is contained in:
abdou6666 2025-01-06 11:52:50 +01:00
parent ccfa79cbe3
commit f9b2d4495d

View File

@ -85,7 +85,7 @@ async function bootstrap() {
}
process.on('uncaughtException', (error) => {
if (error.stack && error.stack.toLowerCase().includes('smtp'))
if (error.stack?.toLowerCase().includes('smtp'))
app.get(LoggerService).error('SMTP error', error.stack);
else throw error;
});