From 35c1dbc13d0cf5d76f027e6ba40c6d6cad9a87e7 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 31 Aug 2023 14:50:50 +0200 Subject: [PATCH] fix: syntax --- src/server/openpgpProfiles.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server/openpgpProfiles.js b/src/server/openpgpProfiles.js index c0086af..ef11ace 100644 --- a/src/server/openpgpProfiles.js +++ b/src/server/openpgpProfiles.js @@ -105,13 +105,10 @@ const fetchWKD = (id) => { try { profile = await doipjs.openpgp.parsePublicKey(publicKey) } catch (error) { - profile = null - } - - if (!profile) { reject(new Error('No public keys could be fetched using WKD')) return } + profile.publicKey.fetch.method = 'wkd' profile.publicKey.fetch.query = id profile.publicKey.fetch.resolvedUrl = fetchURL