Fix hardcoded statusCode

This commit is contained in:
Yarmo Mackenbach 2021-10-16 07:52:22 +02:00
parent 5b5ccbb590
commit acd1dab2f4
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -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)
}
)