From 42e29e719c311b891299dfddd6fa2bc3d6d04c27 Mon Sep 17 00:00:00 2001 From: Braeden57 Date: Mon, 25 Jan 2021 08:46:17 -0800 Subject: [PATCH] Minor Fix --- routes/users.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/users.js b/routes/users.js index 3955cff..57bd25d 100644 --- a/routes/users.js +++ b/routes/users.js @@ -224,7 +224,7 @@ router.post('/addXP', (req, res, next) => { // Edit router.post('/edit', upload.single('image'), (req, res, next) => { // Passes image path to defaultImage Model - imagePath = __dirname + '/uploads/default-image'; + let imagePath = __dirname + '/uploads/default-image'; module.exports = { defaultPath: imagePath } @@ -426,7 +426,7 @@ router.post('/edit', upload.single('image'), (req, res, next) => { // Register Teacher router.post('/registerTeacher', upload.single('image'), (req, res, next) => { // Passes image path to defaultImage Model - imagePath = __dirname + '/uploads/default-image'; + let imagePath = __dirname + '/uploads/default-image'; module.exports = { defaultPath: imagePath } @@ -565,7 +565,7 @@ router.post('/registerTeacher', upload.single('image'), (req, res, next) => { // Register router.post('/register', upload.single('image'), (req, res, next) => { // Passes image path to defaultImage Model - imagePath = __dirname + '/uploads/default-image'; + let imagePath = __dirname + '/uploads/default-image'; module.exports = { defaultPath: imagePath }