aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/admin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/admin.ts')
-rw-r--r--server/middlewares/admin.ts2
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 @@
1const logger = require('../helpers/logger') 1import { logger } from '../helpers'
2 2
3function ensureIsAdmin (req, res, next) { 3function ensureIsAdmin (req, res, next) {
4 const user = res.locals.oauth.token.user 4 const user = res.locals.oauth.token.user