Skip to content

Commit

Permalink
Update profile route response to handle custom social links
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Apr 12, 2024
1 parent 4041bf7 commit aceb5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/profiles/[slug]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit aceb5e7

Please sign in to comment.