Skip to content

Commit a205bfa

Browse files
committed
Fixed the createdAt check
1 parent bcdc10c commit a205bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Minimal Order Api/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static void Main(string[] args)
6868
Console.WriteLine($"Order {uniqueIdentifier}: Missing {nameof(order.OrderNumber)}");
6969
}
7070

71-
if (order.CreatedAt > startDate)
71+
if (order.CreatedAt == default)
7272
{
7373
isValid = false;
7474
Console.WriteLine($"Order {uniqueIdentifier}: {nameof(order.CreatedAt)} was not set.");

0 commit comments

Comments
 (0)