Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Apps.Crowdin/Actions/TaskActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task<ListTasksResponse> ListTasks(
});

var tasks = items.Select(x => x.Data)
.Where(x => string.IsNullOrEmpty(input.AssigneeId) || x.Assignees.Contains(input.AssigneeId))
.Where(x => string.IsNullOrEmpty(input.AssigneeId) || x.Assignees.Any(x => x.Id.ToString() == input.AssigneeId))
.ApplyFieldsFilter(x => x.Fields, fieldsFilter);

return new(tasks.ToList());
Expand Down
2 changes: 1 addition & 1 deletion Apps.Crowdin/Apps.Crowdin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<Product>Crowdin</Product>
<Description>Cloud-based solution that streamlines localization management</Description>
<Version>1.2.41</Version>
<Version>1.2.42</Version>
<AssemblyName>Apps.Crowdin</AssemblyName>
</PropertyGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Apps.Crowdin/Models/Entities/TaskEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class TaskEntity

public string Vendor { get; set; }

public IEnumerable<string> Assignees { get; set; }
public IEnumerable<TaskAssignee> Assignees { get; set; }

[Display("File IDs")]
public IEnumerable<string> FileIds { get; set; }
Expand Down Expand Up @@ -58,7 +58,7 @@ public TaskEntity(TaskResource taskResource)
Status = taskResource.Status.ToString();
Title = taskResource.Title;
Description = taskResource.Description;
Assignees = taskResource.Assignees.Select(x => x.FullName);
Assignees = taskResource.Assignees;
Vendor = taskResource.Vendor;
FileIds = taskResource.FileIds.Select(x => x.ToString());
SourceLanguageId = taskResource.SourceLanguageId;
Expand All @@ -76,7 +76,7 @@ public TaskEntity(TaskResourceDto taskResource)
Status = taskResource.Status.ToString();
Title = taskResource.Title;
Description = taskResource.Description;
Assignees = taskResource.Assignees.Select(x => x.FullName);
Assignees = taskResource.Assignees;
Vendor = taskResource.Vendor;
FileIds = taskResource.FileIds.Select(x => x.ToString());
SourceLanguageId = taskResource.SourceLanguageId;
Expand Down