From acd1dab2f4e7a8e3673e646a103a7cf32d27fb12 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 16 Oct 2021 07:52:22 +0200 Subject: [PATCH] Fix hardcoded statusCode --- api/v0/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v0/index.js b/api/v0/index.js index 944f125..621b81c 100644 --- a/api/v0/index.js +++ b/api/v0/index.js @@ -274,7 +274,7 @@ router.get('/profile/fetch', statusCode = 500 } - res.status(500).send(data) + res.status(statusCode).send(data) } ) @@ -304,7 +304,7 @@ router.get('/profile/verify', statusCode = 500 } - res.status(500).send(data) + res.status(statusCode).send(data) } )