From 802b23a9fc27bd877b4026b6a1edcc0cece88f68 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 10 Jul 2022 11:07:48 +0200 Subject: [PATCH] Add parentheses Signed-off-by: Georg Pfuetzenreuter --- src/service/public-key.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/public-key.js b/src/service/public-key.js index e6179aa..3d8bb7b 100644 --- a/src/service/public-key.js +++ b/src/service/public-key.js @@ -79,7 +79,7 @@ class PublicKey { // if emails array is empty, all userIds of the key will be submitted if (emails.length) { // keep submitted user IDs only - key.userIds = key.getUserIDs.filter(({email}) => emails.includes(email)); + key.userIds = key.getUserIDs().filter(({email}) => emails.includes(email)); if (key.getUserIDs().length !== emails.length) { util.throw(400, 'Provided email address does not match a valid user ID of the key'); }