Skip to content

Commit

Permalink
Merge pull request #31 from bentran1vn/Fix/PublisherMentorSkills
Browse files Browse the repository at this point in the history
Fix Not Publish New Skills Mentor
  • Loading branch information
bentran1vn authored Oct 17, 2024
2 parents 4245a15 + c8a9813 commit f84cfe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions MBS-COMMAND.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
// Add Middleware => Remember using middleware
builder.Services.AddTransient<ExceptionHandlingMiddleware>();
builder.Services.AddTransient<ICurrentUserService,CurrentUserService>();

builder.Services.AddHttpContextAccessor();

var app = builder.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public async Task<Result> Handle(Command.CreateMentorSkillsCommand request, Canc

_cetificateRepository.AddRange(certificates);

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

await _mailService.SendMail(new MailContent()
{
Body = "DITME MAY NGHI",
Subject = "XIN CHAO QUY KHACH",
To = "tan182205@gmail.com"
});
// await _mailService.SendMail(new MailContent()
// {
// Body = "DITME MAY NGHI",
// Subject = "XIN CHAO QUY KHACH",
// To = "tan182205@gmail.com"
// });

// await _mailService.SendMail(EmailExtensions.ForgotPasswordBody("randomNumber", $"USERNAME", "request.Email"));

Expand Down

0 comments on commit f84cfe7

Please sign in to comment.