HTTP code
parent
ade50cb248
commit
1f9bca6641
|
@ -30,7 +30,7 @@ module.exports = (req, res, next) => {
|
||||||
}, (QueryError, count) => {
|
}, (QueryError, count) => {
|
||||||
if (count !== 1) {
|
if (count !== 1) {
|
||||||
return next({
|
return next({
|
||||||
status: 403,
|
status: 401,
|
||||||
message: 'Your session is invalid. Please try sign in again.',
|
message: 'Your session is invalid. Please try sign in again.',
|
||||||
error: [],
|
error: [],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue