From 62dfde9c1153577bba7d068dd35baec48539a601 Mon Sep 17 00:00:00 2001 From: Eric <36512385+PhucNghi176@users.noreply.github.com> Date: Thu, 24 Oct 2024 19:29:49 +0700 Subject: [PATCH] Update CreateFeedbackCommandHandler.cs --- .../Commands/Feedbacks/CreateFeedbackCommandHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MBS_COMMAND.Application/UserCases/Commands/Feedbacks/CreateFeedbackCommandHandler.cs b/MBS_COMMAND.Application/UserCases/Commands/Feedbacks/CreateFeedbackCommandHandler.cs index 6370e2b..b93767a 100644 --- a/MBS_COMMAND.Application/UserCases/Commands/Feedbacks/CreateFeedbackCommandHandler.cs +++ b/MBS_COMMAND.Application/UserCases/Commands/Feedbacks/CreateFeedbackCommandHandler.cs @@ -1,4 +1,4 @@ -using MBS_COMMAND.Contract.Abstractions.Messages; +using MBS_COMMAND.Contract.Abstractions.Messages; using MBS_COMMAND.Contract.Abstractions.Shared; using MBS_COMMAND.Contract.Services.Feedbacks; using MBS_COMMAND.Domain.Abstractions; @@ -21,7 +21,7 @@ public CreateFeedbackCommandHandler(IRepositoryBase feedbackRepo public async Task Handle(Command.CreateFeedback request, CancellationToken cancellationToken) { - var role = _currentUserService.Role == "2"; + var role = _currentUserService.Role == "1"; var feedback = new Feedback { Content = request.Content,