From 3681b9f86a0314c2e46d884aedf74778c39b61b2 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 1 Sep 2024 11:56:51 +0200 Subject: [PATCH] fix: stop function when response is sent --- src/api/v3/keyoxide_profile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/v3/keyoxide_profile.js b/src/api/v3/keyoxide_profile.js index 15c1028..ec08e0f 100644 --- a/src/api/v3/keyoxide_profile.js +++ b/src/api/v3/keyoxide_profile.js @@ -121,6 +121,7 @@ router.get('/fetch', if ('errors' in data && data.errors.length > 0) { res.status(500).send(data) + return } // Do verification