Skip to content

Commit

Permalink
fix-err in generic upload (#692)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

-spdbt 2115: Error Displayed for Generic Upload
  • Loading branch information
peggy-quartech authored Jan 19, 2024
1 parent 72220cb commit 174ef37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Spd.Engine.Validation/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public record AppDuplicateCheck
public Guid OrgId { get; set; }
public string? FirstName { get; set; }
public string LastName { get; set; } = null!;
public DateTimeOffset DateOfBirth { get; set; }
public DateOnly DateOfBirth { get; set; }
}
public record BulkUploadAppDuplicateCheckResponse(IEnumerable<AppBulkDuplicateCheckResult> BulkDuplicateChecks) : DuplicateCheckResponse;
public record AppBulkDuplicateCheckResult : AppDuplicateCheckResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ public async Task BulkUploadDuplicateCheck_CanCheckDuplicateInTsvAndDb()
List<AppBulkDuplicateCheck> checks = new() {
new AppBulkDuplicateCheck()
{
DateOfBirth = new DateTime(2000,1,1),
DateOfBirth = new DateOnly(2000,1,1),
FirstName = "given",
LastName = "sur",
LineNumber = 1,
OrgId = (Guid)org.accountid
},
new AppBulkDuplicateCheck()
{
DateOfBirth = new DateTime(2000,1,1),
DateOfBirth = new DateOnly(2000,1,1),
FirstName = "given",
LastName = "sur",
LineNumber = 2,
OrgId = (Guid)org.accountid
},
new AppBulkDuplicateCheck()
{
DateOfBirth = new DateTime(2000,1,1),
DateOfBirth = new DateOnly(2000,1,1),
FirstName = "given3",
LastName = "sur3",
LineNumber = 3,
OrgId = (Guid)org.accountid
},
new AppBulkDuplicateCheck()
{
DateOfBirth = DateTimeOffset.UtcNow,
DateOfBirth = new DateOnly(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day),
FirstName = "fn",
LastName = "ln",
LineNumber = 4,
Expand Down

0 comments on commit 174ef37

Please sign in to comment.