Merge pull request #1971 from automatisch/fix-email-worker
fix(email): correct sandbox safeguard check
This commit is contained in:
@@ -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!'
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user