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 { renderIndex } from '../views/index';
|
||||||
import { get404Sketch } from '../views/404Page';
|
import { get404Sketch } from '../views/404Page';
|
||||||
import { userExists } from '../controllers/user.controller';
|
import { userExists } from '../controllers/user.controller';
|
||||||
import { getProjectAsset } from '../controllers/project.controller';
|
|
||||||
|
|
||||||
const router = new Router();
|
const router = new Router();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
export default function isAuthenticated(req, res, next) {
|
export default function isAuthenticated(req, res, next) {
|
||||||
if (req.user) {
|
if (req.user) {
|
||||||
return next();
|
next();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
res.status(403).send({
|
res.status(403).send({
|
||||||
success: false,
|
success: false,
|
||||||
|
|
Loading…
Reference in a new issue