Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAbuirmeileh committed Oct 31, 2023
1 parent 8e9b361 commit 174942a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/controllers/voluntaryWork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,7 @@ const registerByVolunteer = async (workId: number, volunteerProfile: Volunteer["
throw error;
}

if (voluntaryWork.volunteerProfiles) {
voluntaryWork.volunteerProfiles.push(volunteerProfile);
} else {
voluntaryWork.volunteerProfiles = [volunteerProfile];
}
voluntaryWork.volunteerProfiles.push(volunteerProfile);

if (volunteerProfile.voluntaryWorks) {
volunteerProfile.voluntaryWorks.push(voluntaryWork);
Expand Down

0 comments on commit 174942a

Please sign in to comment.