From 1e64b8a9034adfd86877b08bbaf9cf59d4ed23f7 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Wed, 17 Jul 2024 08:23:54 +0000 Subject: [PATCH] fix(email): correct sandbox safeguard check --- packages/backend/src/workers/email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/workers/email.js b/packages/backend/src/workers/email.js index e1297376..446d8309 100644 --- a/packages/backend/src/workers/email.js +++ b/packages/backend/src/workers/email.js @@ -21,7 +21,7 @@ export const worker = new Worker( async (job) => { const { email, subject, template, params } = job.data; - if (isCloudSandbox && !isAutomatischEmail(email)) { + if (isCloudSandbox() && !isAutomatischEmail(email)) { logger.info( 'Only Automatisch emails are allowed for non-production environments!' );