diff --git a/src/routes/notification.js b/src/routes/notification.js
index bfc85b4fafc489bc104d8def1b28d6faaa1867b9..b2ef76d444d6401f40099c6450266dd3d3b0b415 100644
--- a/src/routes/notification.js
+++ b/src/routes/notification.js
@@ -1,7 +1,7 @@
 const express = require('express')
 const router = express.Router()
 const Notification = require('../schema/schema')
-import { decode } from "jwt-simple";
+const jwt = require("jwt-simple");
 
 // Recieve the notifaction 
 // user id, title, description
@@ -34,7 +34,7 @@ router.get("/info", async (req, res) => {
     const token = req.headers.authorization.split(" ")[1];
 
     // Decode this token with the secret key
-    const payload = decode(token, secretKey, false, jwtAlgorithm);
+    const payload = jwt.decode(token, secretKey, false, jwtAlgorithm);
 
     // Get the user id from the decoded token payload.
     const userId = payload.id;