Skip to content

Commit

Permalink
updated user notification route
Browse files Browse the repository at this point in the history
  • Loading branch information
VenketeshRushi committed Oct 28, 2023
1 parent 23d02e7 commit 7f0ba1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# Use Ubuntu as the base image
FROM ubuntu:latest

# Update Ubuntu and install necessary packages
RUN apt-get update && apt-get install -y \
curl \
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest
FROM node:18-alpine

# Set the working directory in the container
WORKDIR /usr/src/app
WORKDIR /

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
Expand Down
2 changes: 1 addition & 1 deletion module_user/controllers/userDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ exports.updateUserNotificationDetails = async (req, res, next) => {
},
});

res.status(200).json(updatedUser);
return res.status(200).json({ user: updatedUser });
} catch (error) {
console.error(error);
next(error);
Expand Down

0 comments on commit 7f0ba1c

Please sign in to comment.