From aceb5e7b2b1094c8c58d1a427197b7266c829ac7 Mon Sep 17 00:00:00 2001 From: chimpdev Date: Fri, 12 Apr 2024 20:15:54 +0300 Subject: [PATCH] Update profile route response to handle custom social links --- server/src/routes/profiles/[slug]/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/profiles/[slug]/index.js b/server/src/routes/profiles/[slug]/index.js index 63582aeb..b6d9c02c 100644 --- a/server/src/routes/profiles/[slug]/index.js +++ b/server/src/routes/profiles/[slug]/index.js @@ -147,7 +147,7 @@ module.exports = { profile.socials.push({ type: 'custom', link: socials[key] }); } catch (error) { - return response.sendError('Custom social link is not valid.', 400); + return response.sendError(error, 400); } } else { const baseUrls = {