Skip to content

Commit

Permalink
typo error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemu21 committed May 14, 2024
1 parent 13fc721 commit 5ccd84c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/app/routes/teamMember/addTeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ module.exports = async (req, res, next) => {
res.status(401).json({ error: 'You are not an admin' });
}

const { fullName, description, linkedinUrl, githubUrl, twitterUrl, teams } = req.body;
const teammember = new TeamMemberModel({
full_name: req.body?.full_name,
image: req.body?.image,
description: req.body?.description,
linkedin_url: req.body?.linkedin_url,
github_url: req.body?.github_url,
twitter_url: req.body?.twitter_url,
teams: req.body?.teams,
full_name: fullName,
image: req.file.path,
description,
linkedin_url: linkedinUrl,
github_url: githubUrl,
twitter_url: twitterUrl,
teams,
});

const [err, result] = await to(teammember.save());
Expand Down

0 comments on commit 5ccd84c

Please sign in to comment.