Skip to content

Commit

Permalink
Merge pull request #41 from bentran1vn/Fix/DuplicateCertificate
Browse files Browse the repository at this point in the history
Fix/duplicate certificate
  • Loading branch information
bentran1vn authored Nov 11, 2024
2 parents d75bd75 + 3a4b304 commit b729df6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public async Task<Result> Handle(Command.CreateMentorSkillsCommand request, Canc
Description = "123123",
ImageUrl = x
}).ToList();
_cetificateRepository.AddRange(certificates);
mentorSkill.CreateMentorSkills(mentor.Id, skill, certificates);
}
else
{
Expand All @@ -73,12 +75,10 @@ public async Task<Result> Handle(Command.CreateMentorSkillsCommand request, Canc
Description = "123123",
ImageUrl = x
}).ToList();
_cetificateRepository.AddRange(certificates);
mentorSkills.CreateMentorSkills(mentor.Id, skill, certificates);
}

_cetificateRepository.AddRange(certificates);

mentorSkill.CreateMentorSkills(mentor.Id, skill, certificates);

// await _mailService.SendMail(new MailContent()
// {
// Body = "DITME MAY NGHI",
Expand Down

0 comments on commit b729df6

Please sign in to comment.