diff options
Diffstat (limited to 'server/middlewares/admin.ts')
-rw-r--r-- | server/middlewares/admin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/admin.ts b/server/middlewares/admin.ts index ebafa36a4..28b6a9a12 100644 --- a/server/middlewares/admin.ts +++ b/server/middlewares/admin.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | const logger = require('../helpers/logger') | 1 | import { logger } from '../helpers' |
2 | 2 | ||
3 | function ensureIsAdmin (req, res, next) { | 3 | function ensureIsAdmin (req, res, next) { |
4 | const user = res.locals.oauth.token.user | 4 | const user = res.locals.oauth.token.user |