From a432aee3de344da17262e3de2b86a74d5461828c Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 2 Aug 2024 11:24:15 -0700 Subject: [PATCH] Added empty query to request object --- Server/controllers/authController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index 6f34f71ce..ffb38559e 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -440,6 +440,7 @@ const deleteUserController = async (req, res, next) => { const { _id, email } = decodedToken; const decodedTokenCastedAsRequest = { + query: {}, params: { userId: _id, },