From 8c38171cf2723c7fbcae19382ca3719edff57fe1 Mon Sep 17 00:00:00 2001 From: portuu3 <61605646+portuu3@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:21:50 +0200 Subject: [PATCH] fix condition (#2606) --- .../server/src/modules/encryption/encryption.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apps/job-launcher/server/src/modules/encryption/encryption.module.ts b/packages/apps/job-launcher/server/src/modules/encryption/encryption.module.ts index 805c2e1d3c..7a1f74097f 100644 --- a/packages/apps/job-launcher/server/src/modules/encryption/encryption.module.ts +++ b/packages/apps/job-launcher/server/src/modules/encryption/encryption.module.ts @@ -7,7 +7,7 @@ import { ErrorEncryption } from '../../common/constants/errors'; const encryptionProvider: Provider = { provide: Encryption, useFactory: async (pgpConfigService: PGPConfigService) => { - if (!pgpConfigService.encrypt && !pgpConfigService.privateKey) { + if (!pgpConfigService.encrypt || !pgpConfigService.privateKey) { return null; } const privateKey = pgpConfigService.privateKey;