Skip to content

Commit

Permalink
CHE-113 Fixes from merging dev
Browse files Browse the repository at this point in the history
  • Loading branch information
brok3turtl3 committed Aug 9, 2024
1 parent 13a88e1 commit f19b3f7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 234 deletions.
231 changes: 0 additions & 231 deletions server/controllers/profileController.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const createProfile = async (req: Request, res: Response, next: NextFunction) =>
const {
user,
fullName,
nickname,
profilePhoto,
cohort,
graduationYear,
email,
linkedInProfile,
gitHubProfile,
professionalSummary,
skills,
specializations,
Expand All @@ -35,11 +37,13 @@ const createProfile = async (req: Request, res: Response, next: NextFunction) =>
const profile = await Profile.create({
user,
fullName,
nickname,
profilePhoto,
cohort,
graduationYear,
email,
linkedInProfile,
gitHubProfile,
professionalSummary,
skills,
specializations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,32 @@ AWS.config.update({
// ACCESS Private
const updateProfile = async (req: Request, res: Response, next: NextFunction) => {
const { userID } = req.params;
const { firstName, lastName, email, personalBio } = req.body;
const {
nickName,
email,
personalBio,
linkedInProfile,
gitHubProfile,
cohort,
skills,
specializations,
careerInformation,
socialMediaLinks,
availabilityForNetworking,
} = req.body;

const newProfile = {
firstName,
lastName,
nickName,
email,
personalBio,
linkedInProfile,
gitHubProfile,
cohort,
skills,
specializations,
careerInformation,
socialMediaLinks,
availabilityForNetworking,
};

try {
Expand Down

0 comments on commit f19b3f7

Please sign in to comment.