mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
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
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue