From a04ecad11f91c73d15a21260cc8dd2fd0338226f Mon Sep 17 00:00:00 2001 From: Alexander Holliday Date: Fri, 2 Aug 2024 11:25:35 -0700 Subject: [PATCH] Update authController.js --- Server/controllers/authController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index ffb38559e..296b3fd63 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -439,6 +439,7 @@ const deleteUserController = async (req, res, next) => { const decodedToken = jwt.decode(token); const { _id, email } = decodedToken; + // TODO fix this hack const decodedTokenCastedAsRequest = { query: {}, params: {