Skip to content

Commit

Permalink
Fix assignee user being the author of the command
Browse files Browse the repository at this point in the history
  • Loading branch information
j4asper committed Nov 5, 2024
1 parent f64be17 commit a734df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KanbanCord/Commands/Task/TaskViewCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ partial class TaskCommandGroup
var author = await context.Client.GetUserAsync(taskItem.AuthorId);

var assignee = taskItem.AssigneeId is not null
? await context.Client.GetUserAsync(taskItem.AuthorId)
? await context.Client.GetUserAsync(taskItem.AssigneeId.Value)
: null;

var priorityString = taskItem.Priority switch
Expand Down

0 comments on commit a734df9

Please sign in to comment.