fix linting errors
This commit is contained in:
parent
81f7c53a1b
commit
c50f64c0f3
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,6 @@ import { Router } from 'express';
|
|||
import { renderIndex } from '../views/index';
|
||||
import { get404Sketch } from '../views/404Page';
|
||||
import { userExists } from '../controllers/user.controller';
|
||||
import { getProjectAsset } from '../controllers/project.controller';
|
||||
|
||||
const router = new Router();
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export default function isAuthenticated(req, res, next) {
|
||||
if (req.user) {
|
||||
return next();
|
||||
next();
|
||||
return;
|
||||
}
|
||||
res.status(403).send({
|
||||
success: false,
|
||||
|
|
Loading…
Reference in a new issue