Update authController.js

This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-02 11:25:35 -07:00
1 parent a432aee3de
commit a04ecad11f
1 file changed
+1
+1
View File
@@ -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: {