Skip to content

Commit

Permalink
fix: remove redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
reecebrend committed Apr 8, 2022
1 parent dda9e92 commit 09252fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/components/state-resources/get-crypto-entry/index.js
Expand Up @@ -41,9 +41,7 @@ module.exports = class GetCryptoEntry {
if (/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(id)) {
try {
const cryptoRecord = await this.cryptoModel.findById(id)
console.log('cryptoRecord', cryptoRecord)
const decrypted = await jwt.verify(cryptoRecord.encryptedValue, encryptionKey, { algorithm: 'HS256' })
console.log('decrypted', decrypted)
for (const decryptionItem of this.pathToDecryptionTargets) {
const data = JSONPath({ path: decryptionItem, json: event, flatten: true })
dottie.set(data[0], key, decrypted.res[0])
Expand Down

0 comments on commit 09252fe

Please sign in to comment.