Skip to content

Commit 8c38171

Browse files
committed
fix condition (#2606)
1 parent 964fd22 commit 8c38171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/job-launcher/server/src/modules/encryption/encryption.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ErrorEncryption } from '../../common/constants/errors';
77
const encryptionProvider: Provider = {
88
provide: Encryption,
99
useFactory: async (pgpConfigService: PGPConfigService) => {
10-
if (!pgpConfigService.encrypt && !pgpConfigService.privateKey) {
10+
if (!pgpConfigService.encrypt || !pgpConfigService.privateKey) {
1111
return null;
1212
}
1313
const privateKey = pgpConfigService.privateKey;

0 commit comments

Comments
 (0)