diff --git a/src/models/domain/cipherString.ts b/src/models/domain/cipherString.ts index 3abb2109..a9fede1d 100644 --- a/src/models/domain/cipherString.ts +++ b/src/models/domain/cipherString.ts @@ -92,9 +92,7 @@ class CipherString { const self = this; if (this.decryptedValue) { - return new Promise((resolve) => { - resolve(self.decryptedValue); - }); + return Promise.resolve(self.decryptedValue); } return self.cryptoService.getOrgKey(orgId).then((orgKey: any) => {