diff --git a/.gitignore b/.gitignore index 2b521d8..290e511 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,6 @@ typings/ # cypress.io frontend/cypress/screenshots frontend/cypress/videos + +# cloudinary +cloudinary.config.js \ No newline at end of file diff --git a/api/controllers/user.js b/api/controllers/user.js index ede631d..568c91d 100644 --- a/api/controllers/user.js +++ b/api/controllers/user.js @@ -24,7 +24,7 @@ const UserController = { firstName: user.firstName, lastName: user.lastName, userName: user.userName, - imageUrl: user.imageUrl + imageUrl: user.imageUrl, }; res.status(200).json({ user: foundUser, token: token }); } @@ -37,7 +37,7 @@ const UserController = { try { const updatedUser = await User.findOneAndUpdate( - { _id: userId }, + { _id: userId }, { imageUrl: imageUrl }, { new: true } ); diff --git a/api/models/user.js b/api/models/user.js index e05a330..2d3baf5 100644 --- a/api/models/user.js +++ b/api/models/user.js @@ -7,7 +7,7 @@ const UserSchema = new mongoose.Schema({ firstName: { type: String, required: true }, lastName: { type: String, required: true }, userName: { type: String, required: true }, - imageUrl: { type: String }, + imageUrl: { type: String } }); // Before saving the user, hash the password if it has been modified diff --git a/frontend/.gitignore b/frontend/.gitignore index 1111bc1..2d00a32 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -23,3 +23,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + diff --git a/frontend/public/index.html b/frontend/public/index.html index 3013aa4..2d2ae76 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -15,7 +15,7 @@ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> -