From 05dde1051cedfc511fa75f73bb87413c2c7076f6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 15 Apr 2019 08:43:18 -0400 Subject: [PATCH] decrypt optimization --- src/models/domain/cipherString.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/domain/cipherString.ts b/src/models/domain/cipherString.ts index 3c5bed833c..703945bd5b 100644 --- a/src/models/domain/cipherString.ts +++ b/src/models/domain/cipherString.ts @@ -90,8 +90,8 @@ export class CipherString { } async decrypt(orgId: string): Promise { - if (this.decryptedValue) { - return Promise.resolve(this.decryptedValue); + if (this.decryptedValue != null) { + return this.decryptedValue; } let cryptoService: CryptoService;