Merge pull request #1971 from automatisch/fix-email-worker

fix(email): correct sandbox safeguard check
This commit is contained in:
Ali BARIN
2024-07-17 13:53:12 +02:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ export const worker = new Worker(
async (job) => { async (job) => {
const { email, subject, template, params } = job.data; const { email, subject, template, params } = job.data;
if (isCloudSandbox && !isAutomatischEmail(email)) { if (isCloudSandbox() && !isAutomatischEmail(email)) {
logger.info( logger.info(
'Only Automatisch emails are allowed for non-production environments!' 'Only Automatisch emails are allowed for non-production environments!'
); );