Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
RiabushenkoA committed Dec 11, 2024
2 parents f593bc8 + 458ce22 commit 3dfc929
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Apps.Lionbridge/Actions/JobActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Blackbird.Applications.Sdk.Common.Actions;
using Blackbird.Applications.Sdk.Common.Invocation;
using Blackbird.Applications.Sdk.Utils.Extensions.Http;
using Microsoft.VisualBasic;
using RestSharp;

namespace Apps.Lionbridge.Actions;
Expand All @@ -25,7 +26,8 @@ public async Task<JobDto> CreateJob([ActionParameter] CreateJobRequest input)
description = input.Description,
providerId = input.ProviderId,
extendedMetadata = EnumerableExtensions.ToDictionary(input.MetadataKeys, input.MetadataValues),
labels = EnumerableExtensions.ToDictionary(input.LabelKeys, input.LabelValues)
labels = EnumerableExtensions.ToDictionary(input.LabelKeys, input.LabelValues),
DueDate = input.dueDate.HasValue ? input.dueDate.Value.ToString("yyyy-MM-dd") : null
});

return await Client.ExecuteWithErrorHandling<JobDto>(request);
Expand Down
3 changes: 3 additions & 0 deletions Apps.Lionbridge/Models/Requests/Job/CreateJobRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ public class CreateJobRequest
[Display("Label values", Description = "Label values. For each specified value, a respective key should be " +
"added in the 'Label keys' input parameter.")]
public IEnumerable<string>? LabelValues { get; set; }

[Display("Due date")]
public DateTime? dueDate { get; set; }
}

0 comments on commit 3dfc929

Please sign in to comment.