forked from Mirrors/keyoxide-web
Fix hardcoded statusCode
This commit is contained in:
parent
5b5ccbb590
commit
acd1dab2f4
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ router.get('/profile/fetch',
|
||||||
statusCode = 500
|
statusCode = 500
|
||||||
}
|
}
|
||||||
|
|
||||||
res.status(500).send(data)
|
res.status(statusCode).send(data)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ router.get('/profile/verify',
|
||||||
statusCode = 500
|
statusCode = 500
|
||||||
}
|
}
|
||||||
|
|
||||||
res.status(500).send(data)
|
res.status(statusCode).send(data)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue