From 1c00edb32a12ec68f8640628b2772fc1268c669e Mon Sep 17 00:00:00 2001 From: Richard Fontein <32132657+rifont@users.noreply.github.com> Date: Tue, 23 Jul 2024 16:45:32 +0100 Subject: [PATCH] refactor(worker): use 'system' for environmentId and userId for inline-css flag evaluation (#6136) --- .../usecases/send-message/send-message-email.usecase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/worker/src/app/workflow/usecases/send-message/send-message-email.usecase.ts b/apps/worker/src/app/workflow/usecases/send-message/send-message-email.usecase.ts index 2bb60121171..02b340e94ca 100644 --- a/apps/worker/src/app/workflow/usecases/send-message/send-message-email.usecase.ts +++ b/apps/worker/src/app/workflow/usecases/send-message/send-message-email.usecase.ts @@ -247,9 +247,9 @@ export class SendMessageEmail extends SendMessageBase { const shouldDisableInlineCss = await this.getFeatureFlag.execute( GetFeatureFlagCommand.create({ key: FeatureFlagsKeysEnum.IS_EMAIL_INLINE_CSS_DISABLED, - environmentId: command.environmentId, + environmentId: 'system', organizationId: command.organizationId, - userId: command.userId, + userId: 'system', }) );