fixed error il PatchLoanEndpoint.cs
This commit is contained in:
@@ -24,7 +24,7 @@ public class PatchLoanEndpoint(LibraryDbContext database) : Endpoint<PatchLoanDt
|
||||
return;
|
||||
}
|
||||
|
||||
if (req.EffectiveReturningDate <= DateOnly.FromDateTime(DateTime.Now))
|
||||
if (req.EffectiveReturningDate < DateOnly.FromDateTime(DateTime.Now))
|
||||
{
|
||||
await Send.StringAsync("Erreur de date. La date est inférieure à la date actuelle.", 400);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user