Skip to content

Commit

Permalink
Refactor middleware.js to remove unused imports and log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
arctixdev committed Apr 18, 2024
1 parent a94d086 commit 3262fcb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions middleware.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import express from "express";
var router = express.Router();
import axios from "axios";
import { logger, prisma } from "./app.js";
import { prisma } from "./app.js";

// Middleware to verify JWT
const verifyToken = async (req, res, next) => {
Expand Down Expand Up @@ -37,9 +35,6 @@ const verifyUserExists = async (req, res, next) => {
// Get the user information from the request
const user = req.user;

// log the user
logger.info("User: ", user);

// Find or create the user in the database
const userRecord = await prisma.user.upsert({
where: { email: user.email },
Expand Down

0 comments on commit 3262fcb

Please sign in to comment.