From 860a92fb86466518c7a66748ac3f8fccbcff7d48 Mon Sep 17 00:00:00 2001 From: Edoka Chisom <59281535+chizzyedoka@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:37:52 +0100 Subject: [PATCH] closes #124 --- middlewares/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middlewares/auth.js b/middlewares/auth.js index d1f28dfe..bf801e9d 100644 --- a/middlewares/auth.js +++ b/middlewares/auth.js @@ -1,8 +1,8 @@ /* eslint-disable camelcase */ const dotenv = require('dotenv'); -const { createCustomError } = require('../errors/custom-errors'); const jwt = require('jsonwebtoken'); -const { User } = require('../models/user.model'); +const { createCustomError } = require('../errors/custom-errors'); +const User = require('../models/user.model'); dotenv.config(); async function auth(req, res, next) {